2023-05-18 13:26:35 +02:00
|
|
|
<div class="flex items-center gap-2">
|
2023-04-12 15:42:01 +02:00
|
|
|
@if ($application->status === 'running')
|
2023-05-22 15:47:40 +02:00
|
|
|
<div class="dropdown dropdown-bottom">
|
|
|
|
<button tabindex="0"
|
2023-05-22 22:30:33 +02:00
|
|
|
class="flex items-center justify-center h-full text-white normal-case rounded-none bg-primary btn btn-xs hover:bg-primary no-animation">
|
2023-05-22 15:47:40 +02:00
|
|
|
Actions
|
|
|
|
<x-chevron-down />
|
|
|
|
</button>
|
|
|
|
<ul tabindex="0"
|
|
|
|
class="text-xs text-white normal-case rounded min-w-max dropdown-content menu bg-coolgray-200">
|
|
|
|
<li>
|
2023-05-26 10:20:09 +02:00
|
|
|
<div class="hover:bg-coollabs" wire:click='deploy'>Restart</div>
|
2023-05-22 15:47:40 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2023-05-26 10:20:09 +02:00
|
|
|
<div class="hover:bg-coollabs" wire:click='deploy(true)'>Force deploy without cache</div>
|
2023-05-22 15:47:40 +02:00
|
|
|
</li>
|
2023-05-23 12:52:14 +02:00
|
|
|
<li>
|
|
|
|
<div class="hover:bg-red-500" wire:click='stop'>Stop</div>
|
|
|
|
</li>
|
2023-05-22 15:47:40 +02:00
|
|
|
</ul>
|
2023-05-18 15:12:26 +02:00
|
|
|
</div>
|
2023-04-12 15:42:01 +02:00
|
|
|
@else
|
2023-05-22 15:47:40 +02:00
|
|
|
<div class="dropdown dropdown-bottom">
|
|
|
|
<button tabindex="0"
|
2023-05-22 22:30:33 +02:00
|
|
|
class="flex items-center justify-center h-full text-white normal-case rounded-none bg-primary btn btn-xs hover:bg-primary no-animation">
|
2023-05-22 15:47:40 +02:00
|
|
|
Actions
|
|
|
|
<x-chevron-down />
|
|
|
|
</button>
|
|
|
|
<ul tabindex="0"
|
|
|
|
class="text-xs text-white normal-case rounded min-w-max dropdown-content menu bg-coolgray-200">
|
|
|
|
<li>
|
2023-05-26 10:20:09 +02:00
|
|
|
<div class="hover:bg-coollabs" wire:click='deploy'>Deploy</div>
|
2023-05-22 15:47:40 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2023-05-26 10:20:09 +02:00
|
|
|
<div class="hover:bg-coollabs" wire:click='deploy(true)'>Deploy without cache</div>
|
2023-05-22 15:47:40 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
2023-05-18 15:12:26 +02:00
|
|
|
</div>
|
2023-04-12 15:42:01 +02:00
|
|
|
@endif
|
2023-03-28 22:13:08 +02:00
|
|
|
</div>
|