feat(drive): UX: refresh drive list on change

this fix an issue where the list was cleared but never refreshed
This commit is contained in:
Edouard Vanbelle
2026-07-19 12:36:04 +02:00
parent 8537b5949a
commit 5de65e60ba
3 changed files with 27 additions and 13 deletions
@@ -60,8 +60,7 @@
deleting = true;
try {
await deleteDrive(drive.id);
drivesStore.invalidate();
await drivesStore.load();
await drivesStore.refresh();
ui.notify(t('drive.deleted', 'Drive deleted.'), 'success');
// Send the user back to /files. The picker's reload above
// already removed the now-deleted drive from the sidebar.
@@ -109,8 +108,7 @@
// parent_id IS NULL, so a non-Owner caller would 404 here
// (but the UI also hid this button for non-Owners).
await renameFolder(drive.root_folder_id, next);
drivesStore.invalidate();
await drivesStore.load();
await drivesStore.refresh();
renaming = false;
} catch (e) {
errorToast(e);