lasthourcloud/resources/views/livewire/project/application/deploy.blade.php

41 lines
1.6 KiB
PHP
Raw Normal View History

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-22 13:47:40 +00:00
<div class="dropdown dropdown-bottom">
<button tabindex="0"
2023-05-22 20:30:33 +00: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 13:47:40 +00: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-23 10:52:14 +00:00
<div wire:click='start'>Restart</div>
2023-05-22 13:47:40 +00:00
</li>
<li>
<div wire:click='forceRebuild'>Force deploy without cache</div>
</li>
2023-05-23 10:52:14 +00:00
<li>
<div class="hover:bg-red-500" wire:click='stop'>Stop</div>
</li>
2023-05-22 13:47:40 +00:00
</ul>
2023-05-18 13:12:26 +00:00
</div>
2023-04-12 13:42:01 +00:00
@else
2023-05-22 13:47:40 +00:00
<div class="dropdown dropdown-bottom">
<button tabindex="0"
2023-05-22 20:30:33 +00: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 13:47:40 +00: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>
<div wire:click='start'>Deploy</div>
</li>
<li>
<div wire:click='forceRebuild'>Deploy without cache</div>
</li>
</ul>
2023-05-18 13:12:26 +00:00
</div>
2023-04-12 13:42:01 +00:00
@endif
</div>