diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2023-10-16 01:14:32 +0200 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2023-10-16 01:14:32 +0200 |
commit | 2fd4dbf2f8f20a18965ee219a3294077bac71b85 (patch) | |
tree | 08c405ab0eb37363294a6d48a248c695027e8d5b /src | |
parent | 728f1832358adbe46c4b010cd63958060a4c1af2 (diff) |
fix(frontend): show add to queue only when item type is stream
Diffstat (limited to 'src')
-rw-r--r-- | src/frontend/tubo/components/items.cljs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/tubo/components/items.cljs b/src/frontend/tubo/components/items.cljs index a208a9d..110af0c 100644 --- a/src/frontend/tubo/components/items.cljs +++ b/src/frontend/tubo/components/items.cljs @@ -20,7 +20,7 @@ (util/format-duration duration))]])]]) (defn item-content - [{:keys [url name thumbnail-url description subscriber-count + [{:keys [type url name thumbnail-url description subscriber-count stream-count verified? key uploader-name uploader-url uploader-avatar upload-date short-description view-count]} item-route service-color] @@ -37,7 +37,7 @@ [:h1.line-clamp-1.text-neutral-800.dark:text-gray-300.font-bold.pr-2 uploader-name]) (when verified? [:i.fa-solid.fa-circle-check])] - (when-not stream-count + (when (= type "stream") [:button.pl-4.focus:outline-none {:on-click #(rf/dispatch [::events/switch-to-global-player {:uploader-name uploader-name |