mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 09:51:37 +00:00
fix deployment button ux (#186)
This commit is contained in:
parent
ebbd81348a
commit
3c4435701d
@ -1,15 +1,26 @@
|
||||
<div>
|
||||
@if ($site->deploymentScript)
|
||||
@php
|
||||
$hasDeploymentScript = (bool) $site->deploymentScript;
|
||||
@endphp
|
||||
|
||||
<form
|
||||
id="deploy"
|
||||
@if ($hasDeploymentScript)
|
||||
hx-post="{{ route("servers.sites.application.deploy", ["server" => $server, "site" => $site]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#deploy"
|
||||
@else
|
||||
data-tooltip="Click the Manage button to add a deployment script first"
|
||||
@endif
|
||||
>
|
||||
<x-primary-button
|
||||
class="flex items-center justify-between"
|
||||
:active="true"
|
||||
hx-disable
|
||||
:disabled="(bool) !$hasDeploymentScript"
|
||||
>
|
||||
<x-primary-button class="flex items-center justify-between" :active="true" hx-disable>
|
||||
{{ __("Deploy") }}
|
||||
<x-heroicon name="o-play-circle" class="ml-1 h-5 w-5" />
|
||||
</x-primary-button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user