From 2fd4dbf2f8f20a18965ee219a3294077bac71b85 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Mon, 16 Oct 2023 01:14:32 +0200 Subject: fix(frontend): show add to queue only when item type is stream --- src/frontend/tubo/components/items.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/frontend') 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 -- cgit v1.2.3