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: make sure to show some buttons
Andras Bacsaic6740cfea077
diff --git a/resources/views/components/services/navbar.blade.php b/resources/views/components/services/navbar.blade.phpindex e593b79a8f..3f5dc15f58 100644--- a/resources/views/components/services/navbar.blade.php+++ b/resources/views/components/services/navbar.blade.php@@ -5,16 +5,15 @@</a><x-services.links /><div class="flex-1"></div>- @if (str($service->status())->contains('degraded'))- <button wire:click='deploy' onclick="startService.showModal()"- class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400">+ @if (str($service->status())->contains('running'))+ <button wire:click='restart' class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400"><svg class="w-5 h-5 text-warning" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M19.933 13.041a8 8 0 1 1-9.925-8.788c3.899-1 7.935 1.007 9.425 4.747" /><path d="M20 4v5h-5" /></g></svg>- Restart Degraded Services+ Pull Latest Images & Restart</button><button wire:click='stop' class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400"><svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-error" viewBox="0 0 24 24" stroke-width="2"@@ -25,16 +24,16 @@</svg>Stop</button>- @endif- @if (str($service->status())->contains('running'))- <button wire:click='restart' class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400">+ @elseif (str($service->status())->contains('degraded'))+ <button wire:click='deploy' onclick="startService.showModal()"+ class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400"><svg class="w-5 h-5 text-warning" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M19.933 13.041a8 8 0 1 1-9.925-8.788c3.899-1 7.935 1.007 9.425 4.747" /><path d="M20 4v5h-5" /></g></svg>- Pull Latest Images & Restart+ Restart Degraded Services</button><button wire:click='stop' class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400"><svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-error" viewBox="0 0 24 24" stroke-width="2"@@ -45,8 +44,7 @@</svg>Stop</button>- @endif- @if (str($service->status())->contains('exited'))+ @elseif (str($service->status())->contains('exited'))<button wire:click='stop(true)'class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400"><svg class="w-5 h-5 " viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">@@ -65,6 +63,25 @@</svg>Deploy</button>+ @else+ <button wire:click='stop' class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400">+ <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-error" viewBox="0 0 24 24" stroke-width="2"+ stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>+ <path d="M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"></path>+ <path d="M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"></path>+ </svg>+ Stop+ </button>+ <button wire:click='deploy' onclick="startService.showModal()"+ class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400">+ <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-warning" viewBox="0 0 24 24" stroke-width="1.5"+ stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <path d="M7 4v16l13 -8z" />+ </svg>+ Deploy+ </button>@endif</div>diff --git a/resources/views/components/status/services.blade.php b/resources/views/components/status/services.blade.phpindex ff19cade3d..8f268e2698 100644--- a/resources/views/components/status/services.blade.php+++ b/resources/views/components/status/services.blade.php@@ -1,8 +1,8 @@-@if (Str::of($complexStatus)->startsWith('running'))+@if (str($complexStatus)->contains('running'))<x-status.running :status="$complexStatus" />-@elseif(Str::of($complexStatus)->startsWith('restarting'))+@elseif(str($complexStatus)->contains('restarting'))<x-status.restarting :status="$complexStatus" />-@elseif(Str::of($complexStatus)->startsWith('degraded'))+@elseif(str($complexStatus)->contains('degraded'))<x-status.degraded :status="$complexStatus" />@else<x-status.stopped :status="$complexStatus" />