feat(drive): add drive config menu

This commit is contained in:
Edouard Vanbelle
2026-06-20 01:44:31 +02:00
parent cf7ad87c54
commit b2ab938a11
3 changed files with 291 additions and 6 deletions
+6
View File
@@ -46,6 +46,12 @@ class DrivesStore {
if (!id) return null;
return this.drives.find((d) => d.root_folder_id === id) ?? null;
}
/** Drive whose own UUID matches `id`, or null. */
findById(id: string | null | undefined): Drive | null {
if (!id) return null;
return this.drives.find((d) => d.id === id) ?? null;
}
}
export const drives = new DrivesStore();