From e2fec5b6220f5a918bdea7cf7494a7a667690488 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Mon, 2 Dec 2024 08:34:21 +0100 Subject: feat: add missing like events notifications --- src/frontend/tubo/bg_player/views.cljs | 2 +- src/frontend/tubo/queue/views.cljs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/tubo/bg_player/views.cljs b/src/frontend/tubo/bg_player/views.cljs index 84aab74..0e4f108 100644 --- a/src/frontend/tubo/bg_player/views.cljs +++ b/src/frontend/tubo/bg_player/views.cljs @@ -226,7 +226,7 @@ :icon [:i.fa-solid.fa-heart (when liked? {:style {:color color}})] :on-click #(rf/dispatch [(if liked? :likes/remove :likes/add) - stream])} + stream true])} {:label "Play radio" :icon [:i.fa-solid.fa-tower-cell] :on-click #(rf/dispatch [:bg-player/start-radio stream])} diff --git a/src/frontend/tubo/queue/views.cljs b/src/frontend/tubo/queue/views.cljs index d382466..7088ade 100644 --- a/src/frontend/tubo/queue/views.cljs +++ b/src/frontend/tubo/queue/views.cljs @@ -39,7 +39,8 @@ :icon [:i.fa-solid.fa-heart (when liked? {:style {:color (utils/get-service-color service-id)}})] - :on-click #(rf/dispatch [(if liked? :likes/remove :likes/add) item])} + :on-click #(rf/dispatch [(if liked? :likes/remove :likes/add) item + true])} {:label "Play radio" :icon [:i.fa-solid.fa-tower-cell] :on-click #(rf/dispatch [:bg-player/start-radio item])} -- cgit v1.2.3