refactor: Update confirmation button text for deletion actions
This commit is contained in:
@@ -15,56 +15,32 @@
|
||||
<form wire:submit='submit' class="flex flex-col gap-2">
|
||||
<div class="flex gap-2">
|
||||
@if ($fileStorage->is_directory)
|
||||
<x-modal-confirmation
|
||||
title="Confirm Directory Conversion to File?"
|
||||
buttonTitle="Convert to file"
|
||||
submitAction="convertToFile"
|
||||
:actions="['All files in this directory will be permanently deleted and an empty file will be created in its place.']"
|
||||
confirmationText="{{ $fs_path }}"
|
||||
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
||||
shortConfirmationLabel="Filepath"
|
||||
:confirmWithPassword="false"
|
||||
step2ButtonText="Convert to file"
|
||||
/>
|
||||
<x-modal-confirmation title="Confirm Directory Conversion to File?" buttonTitle="Convert to file"
|
||||
submitAction="convertToFile" :actions="[
|
||||
'All files in this directory will be permanently deleted and an empty file will be created in its place.',
|
||||
]" confirmationText="{{ $fs_path }}"
|
||||
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
||||
shortConfirmationLabel="Filepath" :confirmWithPassword="false" step2ButtonText="Convert to file" />
|
||||
@else
|
||||
<x-modal-confirmation
|
||||
title="Confirm File Conversion to Directory?"
|
||||
buttonTitle="Convert to directory"
|
||||
submitAction="convertToDirectory"
|
||||
:actions="['The selected file will be permanently deleted and an empty directory will be created in its place.']"
|
||||
confirmationText="{{ $fs_path }}"
|
||||
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
||||
shortConfirmationLabel="Filepath"
|
||||
:confirmWithPassword="false"
|
||||
step2ButtonText="Convert to directory"
|
||||
/>
|
||||
<x-modal-confirmation title="Confirm File Conversion to Directory?" buttonTitle="Convert to directory"
|
||||
submitAction="convertToDirectory" :actions="[
|
||||
'The selected file will be permanently deleted and an empty directory will be created in its place.',
|
||||
]" confirmationText="{{ $fs_path }}"
|
||||
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
||||
shortConfirmationLabel="Filepath" :confirmWithPassword="false" step2ButtonText="Convert to directory" />
|
||||
@endif
|
||||
@if ($fileStorage->is_directory)
|
||||
<x-modal-confirmation
|
||||
title="Confirm Directory Deletion?"
|
||||
buttonTitle="Delete Directory"
|
||||
isErrorButton
|
||||
submitAction="delete"
|
||||
:checkboxes="$directoryDeletionCheckboxes"
|
||||
:actions="['The selected directory and all its contents will be permanently deleted from the container.']"
|
||||
confirmationText="{{ $fs_path }}"
|
||||
<x-modal-confirmation title="Confirm Directory Deletion?" buttonTitle="Delete Directory" isErrorButton
|
||||
submitAction="delete" :checkboxes="$directoryDeletionCheckboxes" :actions="[
|
||||
'The selected directory and all its contents will be permanently deleted from the container.',
|
||||
]" confirmationText="{{ $fs_path }}"
|
||||
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
||||
shortConfirmationLabel="Filepath"
|
||||
step3ButtonText="Permanently Delete Directory"
|
||||
/>
|
||||
shortConfirmationLabel="Filepath" step3ButtonText="Permanently Delete" />
|
||||
@else
|
||||
<x-modal-confirmation
|
||||
title="Confirm File Deletion?"
|
||||
buttonTitle="Delete File"
|
||||
isErrorButton
|
||||
submitAction="delete"
|
||||
:checkboxes="$fileDeletionCheckboxes"
|
||||
:actions="['The selected file will be permanently deleted from the container.']"
|
||||
confirmationText="{{ $fs_path }}"
|
||||
<x-modal-confirmation title="Confirm File Deletion?" buttonTitle="Delete File" isErrorButton
|
||||
submitAction="delete" :checkboxes="$fileDeletionCheckboxes" :actions="['The selected file will be permanently deleted from the container.']" confirmationText="{{ $fs_path }}"
|
||||
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
||||
shortConfirmationLabel="Filepath"
|
||||
step3ButtonText="Permanently Delete File"
|
||||
/>
|
||||
shortConfirmationLabel="Filepath" step3ButtonText="Permanently Delete" />
|
||||
@endif
|
||||
|
||||
@if (!$fileStorage->is_based_on_git)
|
||||
|
||||
@@ -7,20 +7,11 @@
|
||||
<h2>{{ Str::headline($application->name) }}</h2>
|
||||
@endif
|
||||
<x-forms.button type="submit">Save</x-forms.button>
|
||||
<x-modal-confirmation
|
||||
title="Confirm Service Application Deletion?"
|
||||
buttonTitle="Delete"
|
||||
isErrorButton
|
||||
submitAction="delete"
|
||||
{{-- :checkboxes="$checkboxes" --}}
|
||||
:actions="[
|
||||
'The selected service application container will be stopped and permanently deleted.'
|
||||
]"
|
||||
<x-modal-confirmation title="Confirm Service Application Deletion?" buttonTitle="Delete" isErrorButton
|
||||
submitAction="delete" {{-- :checkboxes="$checkboxes" --}} :actions="['The selected service application container will be stopped and permanently deleted.']"
|
||||
confirmationText="{{ Str::headline($application->name) }}"
|
||||
confirmationLabel="Please confirm the execution of the actions by entering the Service Application Name below"
|
||||
shortConfirmationLabel="Service Application Name"
|
||||
step3ButtonText="Permanently Delete Service Application"
|
||||
/>
|
||||
shortConfirmationLabel="Service Application Name" step3ButtonText="Permanently Delete" />
|
||||
</div>
|
||||
<div class="flex flex-col gap-2">
|
||||
<div class="flex gap-2">
|
||||
|
||||
Reference in New Issue
Block a user