mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(web): ascending order for slideshow (#7502)
* feat: ascending order for slideshow * feat: use dropdown * rename * fix: size * pr feedback * fix: hide text on small screen * Wording --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
parent
db455060f0
commit
8d44afe915
7 changed files with 144 additions and 64 deletions
|
|
@ -7,11 +7,20 @@ export enum SlideshowState {
|
|||
None = 'none',
|
||||
}
|
||||
|
||||
export enum SlideshowNavigation {
|
||||
Shuffle = 'shuffle',
|
||||
AscendingOrder = 'ascending-order',
|
||||
DescendingOrder = 'descending-order',
|
||||
}
|
||||
|
||||
function createSlideshowStore() {
|
||||
const restartState = writable<boolean>(false);
|
||||
const stopState = writable<boolean>(false);
|
||||
|
||||
const slideshowShuffle = persisted<boolean>('slideshow-shuffle', true);
|
||||
const slideshowNavigation = persisted<SlideshowNavigation>(
|
||||
'slideshow-navigation',
|
||||
SlideshowNavigation.DescendingOrder,
|
||||
);
|
||||
const slideshowState = writable<SlideshowState>(SlideshowState.None);
|
||||
|
||||
const showProgressBar = persisted<boolean>('slideshow-show-progressbar', true);
|
||||
|
|
@ -40,7 +49,7 @@ function createSlideshowStore() {
|
|||
}
|
||||
},
|
||||
},
|
||||
slideshowShuffle,
|
||||
slideshowNavigation,
|
||||
slideshowState,
|
||||
slideshowDelay,
|
||||
showProgressBar,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue