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
5 changed files with 96 additions and 13 deletions
@@ -19,6 +19,10 @@ export const load = (async ({ params, url }) => {
if (path) {
await foldersStore.fetchAssetsByPath(path);
pathAssets = foldersStore.assets[path] || null;
} else {
// If no path is provided, we we're at the root level
// We should bust the asset cache of the folder store, to make sure we don't show stale data
foldersStore.bustAssetCache();
}
let tree = buildTree(foldersStore.uniquePaths);