Filter playlists, group artist tracks and improve playback and cache controls
Build and Publish / Build and Publish Docker Image (push) Successful in 2m46s
Build and Publish / Build and Publish Docker Image (push) Successful in 2m46s
This commit is contained in:
1 parent
2b8dad2139
commit
656466b176
41 files changed
+2156
-1130
No files matched your search
@@ -109,12 +109,16 @@ document.addEventListener('alpine:init', () => {
|
||||
const id = ++noticeId;
|
||||
this.undoNotices.push({id, item, order, expires:Date.now() + undoWindow, restoring:false});
|
||||
setTimeout(() => this.expireUndo(id), undoWindow);
|
||||
if (keyboard) Alpine.nextTick(() => this.focusVisible('.pin-undo-notice[data-undo-id="' + id + '"] button'));
|
||||
if (keyboard) Alpine.nextTick(() => this.focusVisible('.pin-undo-notice[data-undo-id="' + id + '"] .pin-undo-action'));
|
||||
});
|
||||
},
|
||||
expireUndo(id) {
|
||||
this.undoNotices = this.undoNotices.filter(n => n.id !== id || n.restoring);
|
||||
},
|
||||
dismissUndo(id, event) {
|
||||
this.expireUndo(id);
|
||||
if (event.detail === 0) Alpine.nextTick(() => this.focusVisible('.music-nav-pages a[href="#artists"]'));
|
||||
},
|
||||
undo(id, event) {
|
||||
const notice = this.undoNotices.find(n => n.id === id);
|
||||
if (!notice || notice.restoring) return;
|
||||
|
||||
Reference in new issue
Block a user