From 388929be302c14dfabf73d3bfdb23f0aa0f7dec5 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 22 Oct 2024 10:58:23 +0200 Subject: [PATCH] Refactor status component to use title instead of lastDeploymentInfo --- resources/views/components/resources/breadcrumbs.blade.php | 2 +- resources/views/components/status/index.blade.php | 6 +++--- resources/views/components/status/restarting.blade.php | 4 ++-- resources/views/components/status/running.blade.php | 4 ++-- .../views/livewire/project/application/heading.blade.php | 2 +- resources/views/livewire/server/form.blade.php | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/resources/views/components/resources/breadcrumbs.blade.php b/resources/views/components/resources/breadcrumbs.blade.php index ea12495a1..f9733f63a 100644 --- a/resources/views/components/resources/breadcrumbs.blade.php +++ b/resources/views/components/resources/breadcrumbs.blade.php @@ -44,7 +44,7 @@ @if ($resource->getMorphClass() == 'App\Models\Service') @else - + @endif diff --git a/resources/views/components/status/index.blade.php b/resources/views/components/status/index.blade.php index 0ef652897..fcc2688e1 100644 --- a/resources/views/components/status/index.blade.php +++ b/resources/views/components/status/index.blade.php @@ -1,14 +1,14 @@ @props([ - 'lastDeploymentInfo' => null, + 'title' => null, 'lastDeploymentLink' => null, 'resource' => null, ]) @if (str($resource->status)->startsWith('running')) - + @elseif(str($resource->status)->startsWith('restarting') || str($resource->status)->startsWith('starting') || str($resource->status)->startsWith('degraded')) - + @else @endif diff --git a/resources/views/components/status/restarting.blade.php b/resources/views/components/status/restarting.blade.php index c9b6c2127..4314efa8b 100644 --- a/resources/views/components/status/restarting.blade.php +++ b/resources/views/components/status/restarting.blade.php @@ -1,6 +1,6 @@ @props([ 'status' => 'Restarting', - 'lastDeploymentInfo' => null, + 'title' => null, 'lastDeploymentLink' => null, 'noLoading' => false, ]) @@ -10,7 +10,7 @@ @endif
-