2024-02-22 14:15:16 +00:00
|
|
|
@if (str($resource->status)->startsWith('running'))
|
|
|
|
<x-status.running :status="$resource->status" />
|
|
|
|
@elseif(str($resource->status)->startsWith('restarting') ||
|
|
|
|
str($resource->status)->startsWith('starting') ||
|
|
|
|
str($resource->status)->startsWith('degraded'))
|
|
|
|
<x-status.restarting :status="$resource->status" />
|
2023-09-21 15:48:31 +00:00
|
|
|
@else
|
2024-02-22 14:15:16 +00:00
|
|
|
<x-status.stopped :status="$resource->status" />
|
2023-09-21 15:48:31 +00:00
|
|
|
@endif
|
2024-02-22 14:15:16 +00:00
|
|
|
@if (!str($resource->status)->contains('exited') && $showRefreshButton)
|
2024-04-03 11:03:13 +00:00
|
|
|
<button title="Refresh Status" wire:click='check_status(true)' class="mx-1 dark:hover:fill-white fill-black dark:fill-warning">
|
2023-12-11 12:43:16 +00:00
|
|
|
<svg class="w-4 h-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path
|
|
|
|
d="M12 2a10.016 10.016 0 0 0-7 2.877V3a1 1 0 1 0-2 0v4.5a1 1 0 0 0 1 1h4.5a1 1 0 0 0 0-2H6.218A7.98 7.98 0 0 1 20 12a1 1 0 0 0 2 0A10.012 10.012 0 0 0 12 2zm7.989 13.5h-4.5a1 1 0 0 0 0 2h2.293A7.98 7.98 0 0 1 4 12a1 1 0 0 0-2 0a9.986 9.986 0 0 0 16.989 7.133V21a1 1 0 0 0 2 0v-4.5a1 1 0 0 0-1-1z" />
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
@endif
|