diff --git a/resources/views/livewire/project/shared/destination.blade.php b/resources/views/livewire/project/shared/destination.blade.php index 720e85bdc..a1f7923d3 100644 --- a/resources/views/livewire/project/shared/destination.blade.php +++ b/resources/views/livewire/project/shared/destination.blade.php @@ -33,6 +33,8 @@ class="rounded bg-neutral-100 px-1.5 py-0.5 font-mono text-xs text-neutral-700 d
+ Open server @if ($hasAdditionalDestinations) + Open server @if ($destinationStatus->startsWith('running')) @elseif ($destinationStatus->startsWith(['starting', 'restarting'])) @@ -211,6 +215,8 @@ class="rounded bg-neutral-100 px-1.5 py-0.5 font-mono text-xs text-neutral-700 d
+ Open server @if ($primaryStatus->startsWith('running')) @elseif ($primaryStatus->startsWith(['starting', 'restarting'])) diff --git a/tests/Feature/ApplicationDestinationStatusBadgeTest.php b/tests/Feature/ApplicationDestinationStatusBadgeTest.php index 11eeba515..9dfbedb56 100644 --- a/tests/Feature/ApplicationDestinationStatusBadgeTest.php +++ b/tests/Feature/ApplicationDestinationStatusBadgeTest.php @@ -8,3 +8,12 @@ ->toContain('') ->not->toContain('toContain("route('server.show', ['server_uuid' => data_get(\$resource, 'destination.server.uuid')])") + ->toContain("route('server.show', ['server_uuid' => data_get(\$destination, 'server.uuid')])") + ->toContain('Open server'); +});