feat(web): Enable selection interactions in folder view (#15049)

* feat(web): Enable selection interactions in folder view

* feat(web): Add link to parent folder in detail pane, if folders are enabled

* Added invalidation and refreshing of asset cache on changes

* fix: removed unused imports and changed link

* chore: styling

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Arno 2025-01-03 17:09:31 +01:00 committed by GitHub
parent 007caa26bd
commit b45ff8d09f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 96 additions and 13 deletions

View file

@ -27,6 +27,17 @@ class FoldersStore {
this.uniquePaths.sort();
}
bustAssetCache() {
this.assets = {};
}
async refreshAssetsByPath(path: string | null) {
if (!path) {
return;
}
this.assets[path] = await getAssetsByOriginalPath({ path });
}
async fetchAssetsByPath(path: string) {
if (this.assets[path]) {
return;