mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor(web): albums list (2) (#8214)
* refactor: albums list * fix: responsive design * keep albums in sharing
This commit is contained in:
parent
96a5710932
commit
5dc59b591d
7 changed files with 102 additions and 23 deletions
|
|
@ -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, {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue