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:
@@ -253,6 +253,16 @@
|
||||
color: var(--color-text-placeholder);
|
||||
}
|
||||
|
||||
.modal-input--error {
|
||||
border-color: var(--color-error-text);
|
||||
}
|
||||
|
||||
.modal-error {
|
||||
margin-top: 8px;
|
||||
font-size: 13px;
|
||||
color: var(--color-error-text);
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
||||
Reference in New Issue
Block a user