confirm danger
This commit is contained in:
@@ -2,30 +2,26 @@
|
|||||||
<h2>Danger Zone</h2>
|
<h2>Danger Zone</h2>
|
||||||
<div class="">Woah. I hope you know what are you doing.</div>
|
<div class="">Woah. I hope you know what are you doing.</div>
|
||||||
<h4 class="pt-4">Delete Resource</h4>
|
<h4 class="pt-4">Delete Resource</h4>
|
||||||
<div class="pb-4">This will stop your containers, delete all related data, etc. Beware! There is no coming
|
<div class="pb-4">This will stop your containers, delete all related data, etc. Beware! There is no coming back!</div>
|
||||||
back!
|
|
||||||
</div>
|
|
||||||
<x-modal-confirmation
|
<x-modal-confirmation
|
||||||
isError
|
title="Confirm Resource Deletion?"
|
||||||
|
buttonTitle="Delete Resource"
|
||||||
|
isErrorButton
|
||||||
type="button"
|
type="button"
|
||||||
buttonTitle="Delete this resource"
|
submitAction="delete"
|
||||||
|
buttonTitle="Delete Resource"
|
||||||
:checkboxes="[
|
:checkboxes="[
|
||||||
['id' => 'delete_volumes', 'model' => 'delete_volumes', 'label' => 'Permanently delete associated volumes?'],
|
['id' => 'delete_volumes', 'model' => 'delete_volumes', 'label' => 'All associated volumes with this resource will be permanently deleted'],
|
||||||
['id' => 'delete_connected_networks', 'model' => 'delete_connected_networks', 'label' => 'Permanently delete connected networks, predefined networks are not deleted?'],
|
['id' => 'delete_connected_networks', 'model' => 'delete_connected_networks', 'label' => 'All connected networks with this resource will be permanently deleted (predefined networks will not be deleted)'],
|
||||||
['id' => 'delete_configurations', 'model' => 'delete_configurations', 'label' => 'Permanently delete configuration files from the server?'],
|
['id' => 'delete_configurations', 'model' => 'delete_configurations', 'label' => 'All configuration files will be permanently deleted form the server'],
|
||||||
['id' => 'docker_cleanup', 'model' => 'docker_cleanup', 'label' => 'Run Docker cleanup (remove builder cache and unused images)?']
|
['id' => 'docker_cleanup', 'model' => 'docker_cleanup', 'label' => 'Docker cleanup will be run on the server which removes builder cache and unused images']
|
||||||
]"
|
|
||||||
:checkboxActions="[
|
|
||||||
'delete_volumes' => 'All associated volumes of this resource will be deleted.',
|
|
||||||
'delete_connected_networks' => 'All connected networks of this resource will be deleted (predefined networks are not deleted).',
|
|
||||||
'delete_configurations' => 'All configuration files of this resource will be deleted on the server.',
|
|
||||||
'docker_cleanup' => 'Docker cleanup will be executed which removes builder cache and unused images.'
|
|
||||||
]"
|
]"
|
||||||
:actions="[
|
:actions="[
|
||||||
'All containers of this resource will be stopped and permanently deleted.'
|
'All containers of this resource will be stopped and permanently deleted.'
|
||||||
]"
|
]"
|
||||||
{{-- :confirmWithPassword="false" --}}
|
confirmationText="{{ $resourceName }}"
|
||||||
>
|
confirmationLabel="Please confirm the execution of the actions by entering the Resource Name below"
|
||||||
This resource will be deleted. It is not reversible. <strong class="text-error">Please think again.</strong><br><br>
|
shortConfirmationLabel="Resource Name"
|
||||||
</x-modal-confirmation>
|
step3ButtonText="Permanently Delete Resource"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user