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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user