lasthourcloud/resources/views/livewire/deploy-application.blade.php
Andras Bacsai d947175e4b wip
2023-04-19 12:42:15 +02:00

16 lines
496 B
PHP

<div>
@if ($application->status === 'running')
<button wire:click='stop'>Stop</button>
@else
<button wire:click='start'>Start</button>
@endif
<button wire:click='kill'>Kill</button>
<span wire:poll='pollingStatus'>
@if ($application->status === 'running')
<span class="text-green-500">{{ $application->status }}</span>
@else
<span class="text-red-500">{{ $application->status }}</span>
@endif
</span>
</div>