diff --git a/resources/views/components/status-badge.blade.php b/resources/views/components/status-badge.blade.php index a8f49e8bf5..72b58d9666 100644 --- a/resources/views/components/status-badge.blade.php +++ b/resources/views/components/status-badge.blade.php @@ -5,6 +5,7 @@ 'as' => 'span', 'dynamic' => false, 'pulse' => false, // ping the dot for a state that is still in progress + 'spinning' => false, // show the loading spinner instead of the dot, e.g. for a running deployment ]) @php @@ -23,12 +24,19 @@ @if ($dynamic) {{ $slot }} @else + @if ($spinning) + + @else @if ($pulse) @endif + @endif {{ collect([$label, $status])->filter()->join(' ') }} @endif @@ -37,12 +45,19 @@ @if ($dynamic) {{ $slot }} @else + @if ($spinning) + + @else @if ($pulse) @endif + @endif {{ collect([$label, $status])->filter()->join(' ') }} @endif @@ -51,12 +66,19 @@ @if ($dynamic) {{ $slot }} @else + @if ($spinning) + + @else @if ($pulse) @endif + @endif {{ collect([$label, $status])->filter()->join(' ') }} @endif diff --git a/resources/views/livewire/dashboard/active-deployments.blade.php b/resources/views/livewire/dashboard/active-deployments.blade.php index dc3ab8ed93..451a7a7837 100644 --- a/resources/views/livewire/dashboard/active-deployments.blade.php +++ b/resources/views/livewire/dashboard/active-deployments.blade.php @@ -81,14 +81,14 @@ {{ $deployment->server_name ?: '-' }}

- +

{{ $environmentPath ?: '-' }} · @@ -141,14 +141,14 @@ {{ $deployment->server_name ?: '-' }}

- +

{{ $environmentPath ?: '-' }} · diff --git a/resources/views/livewire/deployments-indicator.blade.php b/resources/views/livewire/deployments-indicator.blade.php index 7d745f7066..c325949389 100644 --- a/resources/views/livewire/deployments-indicator.blade.php +++ b/resources/views/livewire/deployments-indicator.blade.php @@ -48,7 +48,7 @@

{{ $deployment->application_name }}

-
diff --git a/resources/views/livewire/project/application/deployment/index.blade.php b/resources/views/livewire/project/application/deployment/index.blade.php index c5fe02f54b..c3afa9176f 100644 --- a/resources/views/livewire/project/application/deployment/index.blade.php +++ b/resources/views/livewire/project/application/deployment/index.blade.php @@ -276,6 +276,7 @@ @unless ($embedded) @@ -333,6 +334,10 @@ {{ \Carbon\Carbon::parse(data_get($deployment, 'created_at'))->diffForHumans(syntax: \Carbon\CarbonInterface::DIFF_ABSOLUTE, short: true) }} + @if ($deploymentStatus === 'in_progress') + + @else $statusType === 'success', @@ -340,6 +345,7 @@ 'bg-red-500' => $statusType === 'error', 'bg-neutral-400 dark:bg-neutral-500' => $statusType === 'neutral', ])> + @endif @endif
+ @if ($deploymentStatus === 'in_progress') + + @else $deploymentStatusType === 'success', @@ -343,6 +346,7 @@ 'bg-red-500' => $deploymentStatusType === 'error', 'bg-neutral-400 dark:bg-neutral-500' => $deploymentStatusType === 'neutral', ])> + @endif {{ $deploymentStatusLabel }}