diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-04-29 01:39:47 +0200 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-05-29 11:16:14 +0200 |
commit | 925a727077c83002951cfb812a424a9ff8edb744 (patch) | |
tree | 4440522552e84c6190e0f6e3a3c8491f50bd3226 /src/frontend/tubo/views/channel.cljs | |
parent | 6b00378d9d18163d0b3a7f95d44c88fa225ea752 (diff) |
feat: add support for adding multiple items to bookmark list
Diffstat (limited to 'src/frontend/tubo/views/channel.cljs')
-rw-r--r-- | src/frontend/tubo/views/channel.cljs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/frontend/tubo/views/channel.cljs b/src/frontend/tubo/views/channel.cljs index 6fc61fc..3b99b52 100644 --- a/src/frontend/tubo/views/channel.cljs +++ b/src/frontend/tubo/views/channel.cljs @@ -4,6 +4,7 @@ [re-frame.core :as rf] [tubo.components.items :as items] [tubo.components.layout :as layout] + [tubo.components.modals.bookmarks :as bookmarks] [tubo.events :as events])) (defn channel @@ -36,7 +37,11 @@ [layout/popover-menu !menu-active? [{:label "Add to queue" :icon [:i.fa-solid.fa-headphones] - :on-click #(rf/dispatch [::events/enqueue-related-streams related-streams])}]])] + :on-click #(rf/dispatch [::events/enqueue-related-streams related-streams])} + {:label "Add to playlist" + :icon [:i.fa-solid.fa-plus] + :on-click #(rf/dispatch [::events/add-bookmark-list-modal + [bookmarks/add-to-bookmark-list-modal related-streams]])}]])] [layout/show-more-container @!show-description? description #(reset! !show-description? (not @!show-description?))] [items/related-streams related-streams next-page-url]])))))) |