mirror of
https://github.com/immich-app/immich.git
synced 2025-02-04 01:09:14 -05:00
parent
72a55c13b6
commit
e864811a85
4 changed files with 3 additions and 4 deletions
|
@ -15,7 +15,7 @@
|
|||
</script>
|
||||
|
||||
<ul class="list-none ml-2">
|
||||
{#each Object.entries(items) as [path, tree]}
|
||||
{#each Object.entries(items).sort() as [path, tree]}
|
||||
{@const value = normalizeTreePath(`${parent}/${path}`)}
|
||||
{@const key = value + getColor(value)}
|
||||
{#key key}
|
||||
|
|
|
@ -24,7 +24,6 @@ class FoldersStore {
|
|||
|
||||
const uniquePaths = await getUniqueOriginalPaths();
|
||||
this.uniquePaths.push(...uniquePaths);
|
||||
this.uniquePaths.sort();
|
||||
}
|
||||
|
||||
bustAssetCache() {
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
let pathSegments = $derived(data.path ? data.path.split('/') : []);
|
||||
let tree = $derived(buildTree(foldersStore.uniquePaths));
|
||||
let currentPath = $derived($page.url.searchParams.get(QueryParameter.PATH) || '');
|
||||
let currentTreeItems = $derived(currentPath ? data.currentFolders : Object.keys(tree));
|
||||
let currentTreeItems = $derived(currentPath ? data.currentFolders : Object.keys(tree).sort());
|
||||
|
||||
const assetInteraction = new AssetInteraction();
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ export const load = (async ({ params, url }) => {
|
|||
return {
|
||||
asset,
|
||||
path,
|
||||
currentFolders: Object.keys(tree || {}),
|
||||
currentFolders: Object.keys(tree || {}).sort(),
|
||||
pathAssets,
|
||||
meta: {
|
||||
title: $t('folders'),
|
||||
|
|
Loading…
Add table
Reference in a new issue