mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-06 18:33:38 +02:00
Update views to utilize new playlist, implement play next / play last
This commit is contained in:
parent
4d49b3a3ff
commit
bac22c03a1
3 changed files with 29 additions and 7 deletions
|
|
@ -214,6 +214,16 @@
|
|||
{:db db
|
||||
:audio/play (song-url db prev)})))
|
||||
|
||||
(re-frame/reg-event-db
|
||||
::enqueue-next
|
||||
(fn [db [_ song]]
|
||||
(update-in db [:audio :playlist] #(playlist/enqueue-next % song))))
|
||||
|
||||
(re-frame/reg-event-db
|
||||
::enqueue-last
|
||||
(fn [db [_ song]]
|
||||
(update-in db [:audio :playlist] #(playlist/enqueue-last % song))))
|
||||
|
||||
(re-frame/reg-event-fx
|
||||
::toggle-play-pause
|
||||
(fn [_ _]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue