diff --git a/web/src/lib/stores/preferences.store.ts b/web/src/lib/stores/preferences.store.ts index e65c9c68bb..62dce34cb3 100644 --- a/web/src/lib/stores/preferences.store.ts +++ b/web/src/lib/stores/preferences.store.ts @@ -37,3 +37,11 @@ export const mapSettings = persisted('map-settings', { }); export const videoViewerVolume = persisted('video-viewer-volume', 1, {}); + +export interface AlbumViewSettings { + sortBy: string; +} + +export const albumViewSettings = persisted('album-view-settings', { + sortBy: 'Most recent photo' +}); diff --git a/web/src/routes/(user)/albums/+page.svelte b/web/src/routes/(user)/albums/+page.svelte index bbee578016..f4902b40e7 100644 --- a/web/src/routes/(user)/albums/+page.svelte +++ b/web/src/routes/(user)/albums/+page.svelte @@ -1,4 +1,5 @@