mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
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:
parent
007caa26bd
commit
b45ff8d09f
5 changed files with 96 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue