An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: service stack view
Andras Bacsai0f5559bc6159
diff --git a/resources/views/livewire/project/service/configuration.blade.php b/resources/views/livewire/project/service/configuration.blade.phpindex c02a2ea05b..62b02ec88c 100644--- a/resources/views/livewire/project/service/configuration.blade.php+++ b/resources/views/livewire/project/service/configuration.blade.php@@ -68,8 +68,7 @@<div class="text-xs">{{ $application->status }}</div></div><div class="flex items-center px-4">- <a- class="flex flex-col flex-1 group-hover:text-white hover:no-underline"+ <a class="flex flex-col flex-1 group-hover:text-white hover:no-underline"href="{{ route('project.service.index', [...$parameters, 'service_name' => $application->name]) }}"><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"@@ -115,8 +114,7 @@<div class="text-xs">{{ $database->status }}</div></div><div class="flex items-center px-4">- <a- class="flex flex-col flex-1 group-hover:text-white hover:no-underline"+ <a class="flex flex-col flex-1 group-hover:text-white hover:no-underline"href="{{ route('project.service.index', [...$parameters, 'service_name' => $database->name]) }}"><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"@@ -157,9 +155,7 @@<livewire:project.shared.execute-container-command :resource="$service" /></div><div x-cloak x-show="activeTab === 'environment-variables'">- <div x-cloak x-show="activeTab === 'environment-variables'">- <livewire:project.shared.environment-variable.all :resource="$service" />- </div>+ <livewire:project.shared.environment-variable.all :resource="$service" /></div><div x-cloak x-show="activeTab === 'danger'"><livewire:project.shared.danger :resource="$service" />diff --git a/resources/views/livewire/project/service/index.blade.php b/resources/views/livewire/project/service/index.blade.phpindex 1e1df6f478..e7de24e6fa 100644--- a/resources/views/livewire/project/service/index.blade.php+++ b/resources/views/livewire/project/service/index.blade.php@@ -13,19 +13,10 @@@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'; if(window.location.search) window.location.search = ''"href="#">Storages</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'"@click.prevent="activeTab = 'scheduled-tasks'; window.location.hash = 'scheduled-tasks'"href="#">Scheduled Tasks</a>- <a :class="activeTab === 'danger' && 'text-white'"- @click.prevent="activeTab = 'danger';- window.location.hash = 'danger'"- href="#">Danger Zone- </a>@if ($serviceDatabase?->databaseType() === 'standalone-mysql' ||$serviceDatabase?->databaseType() === 'standalone-postgresql' ||@@ -69,14 +60,10 @@<livewire:project.database.create-scheduled-backup :database="$serviceDatabase" :s3s="$s3s" /><livewire:project.database.scheduled-backups :database="$serviceDatabase" /></div>- </div>+ @endisset<div x-cloak x-show="activeTab === 'scheduled-tasks'"><livewire:project.shared.scheduled-task.all :resource="$service" /></div>- <div x-cloak x-show="activeTab === 'danger'">- <livewire:project.shared.danger :resource="$service" />- </div>- @endisset+ </div></div></div>-</div>diff --git a/resources/views/livewire/project/service/storage.blade.php b/resources/views/livewire/project/service/storage.blade.phpindex 8aef177173..59d3a8b231 100644--- a/resources/views/livewire/project/service/storage.blade.php+++ b/resources/views/livewire/project/service/storage.blade.php@@ -48,5 +48,10 @@@endforeach</div>@endif+ @if (+ $resource->persistentStorages()->get()->count() == 0 &&+ $resource->fileStorages()->get()->count() == 0)+ <div class="pt-4">No storages found.</div>+ @endif@endif</div>