feat(ui): handle errors on folder creation or folder/file renaming
- protect file_management_service::rename_file with validate_storage_name - remove specific rename modal and use the generic modal class (less duplicate) - handle errors on modal action: do not close the modal on error and display this error - hide "Go to parent folder" contextMenu if section is files and folder is the same as current one
This commit is contained in:
@@ -258,6 +258,7 @@
|
||||
<div class="modal-body">
|
||||
<label id="modal-label" for="modal-input" data-i18n="dialogs.folder_name">Folder name</label>
|
||||
<input type="text" id="modal-input" class="modal-input" placeholder="" autocomplete="off">
|
||||
<p id="modal-error" class="modal-error hidden"></p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-secondary" id="modal-cancel-btn" data-i18n="actions.cancel">Cancel</button>
|
||||
|
||||
Reference in New Issue
Block a user