refactor(web): albums list (2) (#8214)

* refactor: albums list

* fix: responsive design

* keep albums in sharing
This commit is contained in:
martin 2024-03-24 19:07:20 +01:00 committed by GitHub
parent 96a5710932
commit 5dc59b591d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 102 additions and 23 deletions

View file

@ -70,6 +70,7 @@ export interface AlbumViewSettings {
sortBy: string;
sortDesc: boolean;
view: string;
filter: string;
}
export interface SidebarSettings {
@ -87,10 +88,17 @@ export enum AlbumViewMode {
List = 'List',
}
export enum AlbumFilter {
All = 'All',
Owned = 'Owned',
Shared = 'Shared',
}
export const albumViewSettings = persisted<AlbumViewSettings>('album-view-settings', {
sortBy: 'Most recent photo',
sortDesc: true,
view: AlbumViewMode.Cover,
filter: AlbumFilter.All,
});
export const showDeleteModal = persisted<boolean>('delete-confirm-dialog', true, {});