lasthourcloud/resources/views/livewire/deploy-application.blade.php
Andras Bacsai ab588d37c0 wip
2023-04-19 14:28:39 +02:00

22 lines
883 B
PHP

<div>
@if ($application->status === 'running')
<button wire:click='start'>Restart</button>
<button wire:click='forceRebuild'>Force Rebuild</button>
<button wire:click='stop'>Stop</button>
@else
<button wire:click='start'>Start</button>
<button wire:click='forceRebuild'>Start (no cache)</button>
@endif
<button wire:click='kill'>Kill</button>
<span wire:poll='pollingStatus'>
@if ($application->status === 'running')
<span class="text-green-500">{{ $application->status }}</span>
@if (!data_get($application, 'settings.is_bot') && data_get($application, 'fqdn'))
<a target="_blank" href="{{ data_get($application, 'fqdn') }}">Open</a>
@endif
@else
<span class="text-red-500">{{ $application->status }}</span>
@endif
</span>
</div>