refactor(ui): Simplify file storage modal confirmations
This commit is contained in:
@@ -21,15 +21,6 @@
|
|||||||
]" confirmationText="{{ $fs_path }}"
|
]" confirmationText="{{ $fs_path }}"
|
||||||
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
||||||
shortConfirmationLabel="Filepath" :confirmWithPassword="false" step2ButtonText="Convert to file" />
|
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" />
|
|
||||||
@endif
|
|
||||||
@if ($fileStorage->is_directory)
|
|
||||||
<x-modal-confirmation title="Confirm Directory Deletion?" buttonTitle="Delete Directory" isErrorButton
|
<x-modal-confirmation title="Confirm Directory Deletion?" buttonTitle="Delete Directory" isErrorButton
|
||||||
submitAction="delete" :checkboxes="$directoryDeletionCheckboxes" :actions="[
|
submitAction="delete" :checkboxes="$directoryDeletionCheckboxes" :actions="[
|
||||||
'The selected directory and all its contents will be permanently deleted from the container.',
|
'The selected directory and all its contents will be permanently deleted from the container.',
|
||||||
@@ -37,13 +28,18 @@
|
|||||||
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
||||||
shortConfirmationLabel="Filepath" step3ButtonText="Permanently Delete" />
|
shortConfirmationLabel="Filepath" step3ButtonText="Permanently Delete" />
|
||||||
@else
|
@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 Deletion?" buttonTitle="Delete File" isErrorButton
|
<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 }}"
|
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"
|
confirmationLabel="Please confirm the execution of the actions by entering the Filepath below"
|
||||||
shortConfirmationLabel="Filepath" step3ButtonText="Permanently Delete" />
|
shortConfirmationLabel="Filepath" step3ButtonText="Permanently Delete" />
|
||||||
@endif
|
@endif
|
||||||
|
{{-- @if (!$fileStorage->is_based_on_git)
|
||||||
@if (!$fileStorage->is_based_on_git)
|
|
||||||
<x-modal-confirmation isErrorButton buttonTitle="Delete">
|
<x-modal-confirmation isErrorButton buttonTitle="Delete">
|
||||||
<div class="px-2">This storage will be deleted. It is not reversible. <strong
|
<div class="px-2">This storage will be deleted. It is not reversible. <strong
|
||||||
class="text-error">Please
|
class="text-error">Please
|
||||||
@@ -58,7 +54,7 @@
|
|||||||
label="Permanently delete file from the server?"></x-forms.checkbox>
|
label="Permanently delete file from the server?"></x-forms.checkbox>
|
||||||
@endif
|
@endif
|
||||||
</x-modal-confirmation>
|
</x-modal-confirmation>
|
||||||
@endif
|
@endif --}}
|
||||||
</div>
|
</div>
|
||||||
@if (!$fileStorage->is_directory)
|
@if (!$fileStorage->is_directory)
|
||||||
@if (data_get($resource, 'settings.is_preserve_repository_enabled'))
|
@if (data_get($resource, 'settings.is_preserve_repository_enabled'))
|
||||||
@@ -75,6 +71,5 @@
|
|||||||
<x-forms.button class="w-full" type="submit">Save</x-forms.button>
|
<x-forms.button class="w-full" type="submit">Save</x-forms.button>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user