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:
Edouard Vanbelle
2026-05-09 00:06:30 +02:00
parent 52f4a865a9
commit 7697f3d35b
9 changed files with 160 additions and 174 deletions
+4
View File
@@ -78,6 +78,10 @@
box-shadow: 0 0 0 3px var(--color-accent-ring);
}
.rename-dialog input--error {
border-color: var(--color-error-text);
}
.rename-dialog-buttons {
display: flex;
justify-content: flex-end;