2023-05-18 11:26:35 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-04-12 13:42:01 +00:00
|
|
|
@if ($application->status === 'running')
|
2023-05-18 13:12:26 +00:00
|
|
|
<div class="btn-group">
|
|
|
|
<x-inputs.button isWarning wire:click='stop'>Stop</x-inputs.button>
|
2023-05-19 12:10:42 +00:00
|
|
|
<div class="bg-transparent border-none dropdown dropdown-hover btn btn-xs no-animation">
|
|
|
|
<button tabindex="0" class="flex items-center justify-center h-full">
|
|
|
|
<x-chevron-down />
|
|
|
|
</button>
|
2023-05-18 13:12:26 +00:00
|
|
|
<ul tabindex="0"
|
|
|
|
class="text-xs text-white normal-case rounded min-w-max dropdown-content menu bg-coolgray-200">
|
|
|
|
<li>
|
|
|
|
<div wire:click='forceRebuild'>Force deploy without cache</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-12 13:42:01 +00:00
|
|
|
@else
|
2023-05-18 13:12:26 +00:00
|
|
|
<div class="btn-group">
|
|
|
|
<x-inputs.button isHighlighted wire:click='start'>Deploy</x-inputs.button>
|
|
|
|
<div class="border-none dropdown dropdown-hover btn btn-xs bg-coollabs hover:bg-coollabs-100 no-animation">
|
2023-05-19 12:10:42 +00:00
|
|
|
<button tabindex="0" class="flex items-center justify-center h-full">
|
|
|
|
<x-chevron-down />
|
|
|
|
</button>
|
2023-05-18 13:12:26 +00:00
|
|
|
<ul tabindex="0"
|
|
|
|
class="text-xs text-white normal-case rounded min-w-max dropdown-content menu bg-coolgray-200">
|
|
|
|
<li>
|
|
|
|
<div wire:click='forceRebuild'>Deploy without cache</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-12 13:42:01 +00:00
|
|
|
@endif
|
2023-04-25 12:57:02 +00:00
|
|
|
<span wire:poll.5000ms='pollingStatus'>
|
2023-05-18 13:12:26 +00:00
|
|
|
{{-- @if ($application->status === 'running')
|
2023-04-25 12:57:02 +00: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 10:42:15 +00:00
|
|
|
@else
|
2023-04-25 12:57:02 +00: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-05-18 13:12:26 +00:00
|
|
|
@endif --}}
|
2023-04-19 10:42:15 +00:00
|
|
|
</span>
|
2023-03-28 20:13:08 +00:00
|
|
|
</div>
|