2023-05-04 22:39:40 +02:00
|
|
|
<div x-data="{ deleteApplication: false }">
|
|
|
|
<x-naked-modal show="deleteApplication" />
|
2023-04-12 15:42:01 +02:00
|
|
|
@if ($application->status === 'running')
|
2023-05-16 15:10:29 +02:00
|
|
|
<x-inputs.button wire:click='start'>Rebuild</x-inputs.button>
|
2023-05-03 14:09:10 +02:00
|
|
|
<x-inputs.button wire:click='forceRebuild'>Force Rebuild</x-inputs.button>
|
2023-05-16 20:47:59 +02:00
|
|
|
<x-inputs.button isWarning wire:click='stop'>Stop</x-inputs.button>
|
2023-04-12 15:42:01 +02:00
|
|
|
@else
|
2023-05-03 14:09:10 +02:00
|
|
|
<x-inputs.button wire:click='start'>Start</x-inputs.button>
|
|
|
|
<x-inputs.button wire:click='forceRebuild'>Start (no cache)</x-inputs.button>
|
2023-04-12 15:42:01 +02:00
|
|
|
@endif
|
2023-05-09 10:01:57 +02:00
|
|
|
<x-inputs.button isWarning x-on:click.prevent="deleteApplication = true">
|
2023-05-03 14:09:10 +02:00
|
|
|
Delete</x-inputs.button>
|
2023-04-25 14:57:02 +02:00
|
|
|
<span wire:poll.5000ms='pollingStatus'>
|
2023-04-19 12:42:15 +02:00
|
|
|
@if ($application->status === 'running')
|
2023-04-25 14:57:02 +02:00
|
|
|
<span class="text-xs text-pink-600" wire:loading.delay.longer>Loading current status...</span>
|
|
|
|
<span class="text-green-500" wire:loading.remove.delay.longer>{{ $application->status }}</span>
|
2023-04-19 12:42:15 +02:00
|
|
|
@else
|
2023-04-25 14:57:02 +02:00
|
|
|
<span class="text-xs text-pink-600" wire:loading.delay.longer>Loading current status...</span>
|
|
|
|
<span class="text-red-500" wire:loading.remove.delay.longer>{{ $application->status }}</span>
|
2023-04-19 12:42:15 +02:00
|
|
|
@endif
|
|
|
|
</span>
|
2023-03-28 22:13:08 +02:00
|
|
|
</div>
|