mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-16 09:42:29 -04:00
Allow local and S3 archives to be deleted independently when removing a volume backup schedule, and consolidate destructive-action layouts with a shared danger-zone component.
40 lines
2.0 KiB
PHP
40 lines
2.0 KiB
PHP
<div>
|
|
<x-slot:title>
|
|
{{ data_get_str($server, 'name')->limit(10) }} > Delete Server | Coolify
|
|
</x-slot>
|
|
|
|
<livewire:server.navbar :server="$server" />
|
|
|
|
<div
|
|
class="server-settings-workspace application-settings-workspace mt-4 grid w-full max-w-none min-w-0 gap-8 lg:mt-0 xl:grid-cols-[210px_minmax(0,1fr)] xl:gap-8">
|
|
<x-server.sidebar :server="$server" activeMenu="danger" />
|
|
|
|
<div class="application-settings-form w-full">
|
|
@if (! $server->is_coolify_host)
|
|
<x-application.settings-section id="server-danger-section" title="Delete server"
|
|
helper="Permanently remove this server and its configuration from Coolify."
|
|
class="server-danger-section">
|
|
<x-danger-zone title="This action cannot be undone">
|
|
<p>
|
|
The server will be removed from Coolify.
|
|
@if ($server->definedResources()->count() > 0)
|
|
It currently contains managed resources. Enable force deletion in the confirmation only
|
|
if those resources should also be removed.
|
|
@endif
|
|
</p>
|
|
<p>Type the server name in the confirmation dialog to continue.</p>
|
|
<x-slot:action>
|
|
<x-modal-confirmation title="Confirm Server Deletion?" isErrorButton
|
|
buttonTitle="Delete server" submitAction="delete"
|
|
:actions="['This server will be permanently deleted from Coolify.']"
|
|
:checkboxes="$checkboxes" confirmationText="{{ $server->name }}"
|
|
confirmationLabel="Please confirm by entering the Server Name below"
|
|
shortConfirmationLabel="Server Name" />
|
|
</x-slot:action>
|
|
</x-danger-zone>
|
|
</x-application.settings-section>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|