aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-02 08:34:21 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-02 08:34:21 +0100
commite2fec5b6220f5a918bdea7cf7494a7a667690488 (patch)
tree01056e4c2d6c870d4dcef0ebbbba9df6d5574645 /src
parent001e250a85472f081622056d5d01f27916fcaa92 (diff)
feat: add missing like events notifications
Diffstat (limited to 'src')
-rw-r--r--src/frontend/tubo/bg_player/views.cljs2
-rw-r--r--src/frontend/tubo/queue/views.cljs3
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])}