diff --git a/app/Enums/ContainerStatus.php b/app/Enums/ContainerStatus.php index 25712a20a..885ff0523 100644 --- a/app/Enums/ContainerStatus.php +++ b/app/Enums/ContainerStatus.php @@ -41,17 +41,8 @@ enum ContainerStatus: string implements HasColor, HasIcon, HasLabel }; } - public function getColor(bool $hex = false): string + public function getColor(): string { - if ($hex) { - return match ($this) { - self::Created, self::Restarting => '#2563EB', - self::Starting, self::Paused, self::Removing, self::Stopping => '#D97706', - self::Running => '#22C55E', - self::Exited, self::Missing, self::Dead, self::Offline => '#EF4444', - }; - } - return match ($this) { self::Created => 'primary', self::Starting => 'warning', diff --git a/app/Enums/ServerState.php b/app/Enums/ServerState.php index 5967c23f0..79d492802 100644 --- a/app/Enums/ServerState.php +++ b/app/Enums/ServerState.php @@ -25,16 +25,8 @@ enum ServerState: string implements HasColor, HasIcon, HasLabel }; } - public function getColor(bool $hex = false): string + public function getColor(): string { - if ($hex) { - return match ($this) { - self::Installing, self::RestoringBackup => '#2563EB', - self::Suspended => '#D97706', - self::InstallFailed, self::ReinstallFailed => '#EF4444', - }; - } - return match ($this) { self::Installing => 'primary', self::InstallFailed => 'danger', diff --git a/resources/views/livewire/server-entry-placeholder.blade.php b/resources/views/livewire/server-entry-placeholder.blade.php index 41cebd225..92bcc4ce2 100644 --- a/resources/views/livewire/server-entry-placeholder.blade.php +++ b/resources/views/livewire/server-entry-placeholder.blade.php @@ -6,7 +6,7 @@
-
+
@if($backgroundImage) diff --git a/resources/views/livewire/server-entry.blade.php b/resources/views/livewire/server-entry.blade.php index 5e183a3c3..43c072930 100644 --- a/resources/views/livewire/server-entry.blade.php +++ b/resources/views/livewire/server-entry.blade.php @@ -14,9 +14,7 @@ x-on:click="{{ $component->redirectUrl() }}" x-on:auxclick.prevent="if ($event.button === 1) {{ $component->redirectUrl(true) }}"> -
-
+
@if($backgroundImage)