aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-02 10:27:05 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-02 10:27:05 +0100
commit957018a5dd64c9006d40fc7fc6cb8e4ae1387d43 (patch)
tree6851144fbe4a1e2285e69a1f7e1cb195f93c119e /src
parent53bf3d78939346db9c4d533ab16d4589503071db (diff)
feat: don't show loading indicator if bg player is null
Diffstat (limited to 'src')
-rw-r--r--src/frontend/tubo/bg_player/views.cljs2
-rw-r--r--src/frontend/tubo/queue/views.cljs2
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])