fix: service stack view
This commit is contained in:
parent
1afb509c33
commit
0f5559bc61
@ -68,8 +68,7 @@
|
|||||||
<div class="text-xs">{{ $application->status }}</div>
|
<div class="text-xs">{{ $application->status }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center px-4">
|
<div class="flex items-center px-4">
|
||||||
<a
|
<a class="flex flex-col flex-1 group-hover:text-white hover:no-underline"
|
||||||
class="flex flex-col flex-1 group-hover:text-white hover:no-underline"
|
|
||||||
href="{{ route('project.service.index', [...$parameters, 'service_name' => $application->name]) }}">
|
href="{{ route('project.service.index', [...$parameters, 'service_name' => $application->name]) }}">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon hover:text-warning"
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon hover:text-warning"
|
||||||
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none"
|
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none"
|
||||||
@ -115,8 +114,7 @@
|
|||||||
<div class="text-xs">{{ $database->status }}</div>
|
<div class="text-xs">{{ $database->status }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center px-4">
|
<div class="flex items-center px-4">
|
||||||
<a
|
<a class="flex flex-col flex-1 group-hover:text-white hover:no-underline"
|
||||||
class="flex flex-col flex-1 group-hover:text-white hover:no-underline"
|
|
||||||
href="{{ route('project.service.index', [...$parameters, 'service_name' => $database->name]) }}">
|
href="{{ route('project.service.index', [...$parameters, 'service_name' => $database->name]) }}">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon hover:text-warning"
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon hover:text-warning"
|
||||||
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none"
|
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none"
|
||||||
@ -156,11 +154,9 @@
|
|||||||
<div x-cloak x-show="activeTab === 'execute-command'">
|
<div x-cloak x-show="activeTab === 'execute-command'">
|
||||||
<livewire:project.shared.execute-container-command :resource="$service" />
|
<livewire:project.shared.execute-container-command :resource="$service" />
|
||||||
</div>
|
</div>
|
||||||
<div x-cloak x-show="activeTab === 'environment-variables'">
|
|
||||||
<div x-cloak x-show="activeTab === 'environment-variables'">
|
<div x-cloak x-show="activeTab === 'environment-variables'">
|
||||||
<livewire:project.shared.environment-variable.all :resource="$service" />
|
<livewire:project.shared.environment-variable.all :resource="$service" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div x-cloak x-show="activeTab === 'danger'">
|
<div x-cloak x-show="activeTab === 'danger'">
|
||||||
<livewire:project.shared.danger :resource="$service" />
|
<livewire:project.shared.danger :resource="$service" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,19 +13,10 @@
|
|||||||
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'; if(window.location.search) window.location.search = ''"
|
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'; if(window.location.search) window.location.search = ''"
|
||||||
href="#">Storages
|
href="#">Storages
|
||||||
</a>
|
</a>
|
||||||
<a :class="activeTab === 'environment-variables' && 'text-white'"
|
|
||||||
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
|
|
||||||
href="#">Environment
|
|
||||||
Variables</a>
|
|
||||||
<a :class="activeTab === 'scheduled-tasks' && 'text-white'"
|
<a :class="activeTab === 'scheduled-tasks' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'scheduled-tasks'; window.location.hash = 'scheduled-tasks'"
|
@click.prevent="activeTab = 'scheduled-tasks'; window.location.hash = 'scheduled-tasks'"
|
||||||
href="#">Scheduled Tasks
|
href="#">Scheduled Tasks
|
||||||
</a>
|
</a>
|
||||||
<a :class="activeTab === 'danger' && 'text-white'"
|
|
||||||
@click.prevent="activeTab = 'danger';
|
|
||||||
window.location.hash = 'danger'"
|
|
||||||
href="#">Danger Zone
|
|
||||||
</a>
|
|
||||||
@if (
|
@if (
|
||||||
$serviceDatabase?->databaseType() === 'standalone-mysql' ||
|
$serviceDatabase?->databaseType() === 'standalone-mysql' ||
|
||||||
$serviceDatabase?->databaseType() === 'standalone-postgresql' ||
|
$serviceDatabase?->databaseType() === 'standalone-postgresql' ||
|
||||||
@ -69,14 +60,10 @@
|
|||||||
<livewire:project.database.create-scheduled-backup :database="$serviceDatabase" :s3s="$s3s" />
|
<livewire:project.database.create-scheduled-backup :database="$serviceDatabase" :s3s="$s3s" />
|
||||||
<livewire:project.database.scheduled-backups :database="$serviceDatabase" />
|
<livewire:project.database.scheduled-backups :database="$serviceDatabase" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
@endisset
|
||||||
<div x-cloak x-show="activeTab === 'scheduled-tasks'">
|
<div x-cloak x-show="activeTab === 'scheduled-tasks'">
|
||||||
<livewire:project.shared.scheduled-task.all :resource="$service" />
|
<livewire:project.shared.scheduled-task.all :resource="$service" />
|
||||||
</div>
|
</div>
|
||||||
<div x-cloak x-show="activeTab === 'danger'">
|
|
||||||
<livewire:project.shared.danger :resource="$service" />
|
|
||||||
</div>
|
</div>
|
||||||
@endisset
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
@ -48,5 +48,10 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@if (
|
||||||
|
$resource->persistentStorages()->get()->count() == 0 &&
|
||||||
|
$resource->fileStorages()->get()->count() == 0)
|
||||||
|
<div class="pt-4">No storages found.</div>
|
||||||
|
@endif
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user