From 957018a5dd64c9006d40fc7fc6cb8e4ae1387d43 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Mon, 2 Dec 2024 10:27:05 +0100 Subject: feat: don't show loading indicator if bg player is null --- src/frontend/tubo/bg_player/views.cljs | 2 +- src/frontend/tubo/queue/views.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/tubo/bg_player/views.cljs b/src/frontend/tubo/bg_player/views.cljs index 0e4f108..eba528a 100644 --- a/src/frontend/tubo/bg_player/views.cljs +++ b/src/frontend/tubo/bg_player/views.cljs @@ -172,7 +172,7 @@ :on-click #(rf/dispatch [:bg-player/seek (- @!elapsed-time 5)])] [button :icon - (if (and (not loading?) @!player) + (if (and (not loading?) (or (nil? bg-player-ready?) @!player)) (if paused? [:i.fa-solid.fa-play] [:i.fa-solid.fa-pause]) diff --git a/src/frontend/tubo/queue/views.cljs b/src/frontend/tubo/queue/views.cljs index 7088ade..6538c70 100644 --- a/src/frontend/tubo/queue/views.cljs +++ b/src/frontend/tubo/queue/views.cljs @@ -119,7 +119,7 @@ :show-on-mobile? true] [player/button :icon - (if (and (not loading?) @!player) + (if (and (not loading?) (or (nil? bg-player-ready?) @!player)) (if paused? [:i.fa-solid.fa-play] [:i.fa-solid.fa-pause]) -- cgit v1.2.3