feat(web): save album sort direction (#4401)

This commit is contained in:
Jonas Mayer 2023-10-10 04:29:04 +02:00 committed by GitHub
parent ebb50476ac
commit 2370c9ef41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -43,6 +43,7 @@ export const isShowDetail = persisted<boolean>('info-opened', false, {});
export interface AlbumViewSettings {
sortBy: string;
sortDesc: boolean;
view: string;
}
@ -61,5 +62,6 @@ export enum AlbumViewMode {
export const albumViewSettings = persisted<AlbumViewSettings>('album-view-settings', {
sortBy: 'Most recent photo',
sortDesc: true,
view: AlbumViewMode.Cover,
});