fix: server view for link()
This commit is contained in:
parent
c3882b75c1
commit
0670e6c1d6
8 changed files with 78 additions and 43 deletions
|
|
@ -50,11 +50,14 @@ protected static function booted()
|
||||||
}
|
}
|
||||||
public function link()
|
public function link()
|
||||||
{
|
{
|
||||||
return route('project.application.configuration', [
|
if (data_get($this, 'environment.project.uuid')) {
|
||||||
'project_uuid' => $this->environment->project->uuid,
|
return route('project.application.configuration', [
|
||||||
'environment_name' => $this->environment->name,
|
'project_uuid' => data_get($this, 'environment.project.uuid'),
|
||||||
'application_uuid' => $this->uuid
|
'environment_name' => data_get($this, 'environment.name'),
|
||||||
]);
|
'application_uuid' => data_get($this, 'uuid')
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
public function settings()
|
public function settings()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -363,11 +363,14 @@ public function saveExtraFields($fields)
|
||||||
}
|
}
|
||||||
public function link()
|
public function link()
|
||||||
{
|
{
|
||||||
return route('project.service.configuration', [
|
if (data_get($this, 'environment.project.uuid')) {
|
||||||
'project_uuid' => $this->environment->project->uuid,
|
return route('project.service.configuration', [
|
||||||
'environment_name' => $this->environment->name,
|
'project_uuid' => data_get($this, 'environment.project.uuid'),
|
||||||
'service_uuid' => $this->uuid
|
'environment_name' => data_get($this, 'environment.name'),
|
||||||
]);
|
'service_uuid' => data_get($this, 'uuid')
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
public function documentation()
|
public function documentation()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,14 @@ protected static function booted()
|
||||||
}
|
}
|
||||||
public function link()
|
public function link()
|
||||||
{
|
{
|
||||||
return route('project.database.configuration', [
|
if (data_get($this, 'environment.project.uuid')) {
|
||||||
'project_uuid' => $this->environment->project->uuid,
|
return route('project.database.configuration', [
|
||||||
'environment_name' => $this->environment->name,
|
'project_uuid' => data_get($this, 'environment.project.uuid'),
|
||||||
'database_uuid' => $this->uuid
|
'environment_name' => data_get($this, 'environment.name'),
|
||||||
]);
|
'database_uuid' => data_get($this, 'uuid')
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
public function isLogDrainEnabled()
|
public function isLogDrainEnabled()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -50,11 +50,14 @@ public function isLogDrainEnabled()
|
||||||
}
|
}
|
||||||
public function link()
|
public function link()
|
||||||
{
|
{
|
||||||
return route('project.database.configuration', [
|
if (data_get($this, 'environment.project.uuid')) {
|
||||||
'project_uuid' => $this->environment->project->uuid,
|
return route('project.database.configuration', [
|
||||||
'environment_name' => $this->environment->name,
|
'project_uuid' => data_get($this, 'environment.project.uuid'),
|
||||||
'database_uuid' => $this->uuid
|
'environment_name' => data_get($this, 'environment.name'),
|
||||||
]);
|
'database_uuid' => data_get($this, 'uuid')
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
public function mongoInitdbRootPassword(): Attribute
|
public function mongoInitdbRootPassword(): Attribute
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,14 @@ protected static function booted()
|
||||||
}
|
}
|
||||||
public function link()
|
public function link()
|
||||||
{
|
{
|
||||||
return route('project.database.configuration', [
|
if (data_get($this, 'environment.project.uuid')) {
|
||||||
'project_uuid' => $this->environment->project->uuid,
|
return route('project.database.configuration', [
|
||||||
'environment_name' => $this->environment->name,
|
'project_uuid' => data_get($this, 'environment.project.uuid'),
|
||||||
'database_uuid' => $this->uuid
|
'environment_name' => data_get($this, 'environment.name'),
|
||||||
]);
|
'database_uuid' => data_get($this, 'uuid')
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
public function type(): string
|
public function type(): string
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,14 @@ protected static function booted()
|
||||||
}
|
}
|
||||||
public function link()
|
public function link()
|
||||||
{
|
{
|
||||||
return route('project.database.configuration', [
|
if (data_get($this, 'environment.project.uuid')) {
|
||||||
'project_uuid' => $this->environment->project->uuid,
|
return route('project.database.configuration', [
|
||||||
'environment_name' => $this->environment->name,
|
'project_uuid' => data_get($this, 'environment.project.uuid'),
|
||||||
'database_uuid' => $this->uuid
|
'environment_name' => data_get($this, 'environment.name'),
|
||||||
]);
|
'database_uuid' => data_get($this, 'uuid')
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
public function isLogDrainEnabled()
|
public function isLogDrainEnabled()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -38,11 +38,14 @@ protected static function booted()
|
||||||
}
|
}
|
||||||
public function link()
|
public function link()
|
||||||
{
|
{
|
||||||
return route('project.database.configuration', [
|
if (data_get($this, 'environment.project.uuid')) {
|
||||||
'project_uuid' => $this->environment->project->uuid,
|
return route('project.database.configuration', [
|
||||||
'environment_name' => $this->environment->name,
|
'project_uuid' => data_get($this, 'environment.project.uuid'),
|
||||||
'database_uuid' => $this->uuid
|
'environment_name' => data_get($this, 'environment.name'),
|
||||||
]);
|
'database_uuid' => data_get($this, 'uuid')
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
public function isLogDrainEnabled()
|
public function isLogDrainEnabled()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,17 @@
|
||||||
@if ($loop->first)
|
@if ($loop->first)
|
||||||
<h3 class="pt-4">Defined resources</h3>
|
<h3 class="pt-4">Defined resources</h3>
|
||||||
@endif
|
@endif
|
||||||
<a class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline" href="{{ $resource->link() }}">
|
@if ($resource->link())
|
||||||
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
<a class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline" href="{{ $resource->link() }}">
|
||||||
<div>{{ $resource->name }}</div>
|
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
||||||
</a>
|
<div>{{ $resource->name }}</div>
|
||||||
|
</a>
|
||||||
|
@else
|
||||||
|
<div class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline">
|
||||||
|
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
||||||
|
<div>{{ $resource->name }}</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@empty
|
@empty
|
||||||
@endforelse
|
@endforelse
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -38,10 +45,17 @@
|
||||||
@if ($loop->first)
|
@if ($loop->first)
|
||||||
<h3 class="pt-4">Defined resources</h3>
|
<h3 class="pt-4">Defined resources</h3>
|
||||||
@endif
|
@endif
|
||||||
<a class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline" href="{{ $resource->link() }}">
|
@if ($resource->link())
|
||||||
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
<a class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline" href="{{ $resource->link() }}">
|
||||||
<div>{{ $resource->name }}</div>
|
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
||||||
</a>
|
<div>{{ $resource->name }}</div>
|
||||||
|
</a>
|
||||||
|
@else
|
||||||
|
<div class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline">
|
||||||
|
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
||||||
|
<div>{{ $resource->name }}</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@empty
|
@empty
|
||||||
@endforelse
|
@endforelse
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue