mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
38 lines
1.6 KiB
PHP
38 lines
1.6 KiB
PHP
<div>
|
|
@if ($site->deploymentScript?->content)
|
|
<x-dropdown>
|
|
<x-slot name="trigger">
|
|
<x-secondary-button>
|
|
{{ __("Auto Deployment") }}
|
|
</x-secondary-button>
|
|
</x-slot>
|
|
<x-slot name="content">
|
|
<div id="auto-deployment">
|
|
<x-dropdown-link
|
|
class="cursor-pointer"
|
|
hx-post="{{ route('servers.sites.application.auto-deployment', ['server' => $server, 'site' => $site]) }}"
|
|
hx-swap="outerHTML"
|
|
hx-target="#auto-deployment"
|
|
>
|
|
{{ __("Enable") }}
|
|
@if ($site->auto_deployment)
|
|
<x-heroicon-o-check class="ml-1 h-5 w-5 text-green-600" />
|
|
@endif
|
|
</x-dropdown-link>
|
|
<x-dropdown-link
|
|
class="cursor-pointer"
|
|
hx-delete="{{ route('servers.sites.application.auto-deployment', ['server' => $server, 'site' => $site]) }}"
|
|
hx-swap="outerHTML"
|
|
hx-target="#auto-deployment"
|
|
>
|
|
{{ __("Disable") }}
|
|
@if (! $site->auto_deployment)
|
|
<x-heroicon-o-check class="ml-1 h-5 w-5 text-green-600" />
|
|
@endif
|
|
</x-dropdown-link>
|
|
</div>
|
|
</x-slot>
|
|
</x-dropdown>
|
|
@endif
|
|
</div>
|