From dd8f86e179e28863f8358944c4a9d70c820fca78 Mon Sep 17 00:00:00 2001 From: Bnyro <bnyro@tutanota.com> Date: Sun, 18 Jun 2023 10:32:23 +0200 Subject: [PATCH] Hide watch on odysee button when no lbryId --- src/components/WatchVideo.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 52fc42f3..f76d1820 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -121,7 +121,11 @@ <!-- YouTube --> <WatchOnButton :link="`https://youtu.be/${getVideoId()}`" /> <!-- Odysee --> - <WatchOnButton :link="`https://odysee.com/${video.lbryId}`" platform="Odysee" /> + <WatchOnButton + v-if="video.lbryId" + :link="`https://odysee.com/${video.lbryId}`" + platform="Odysee" + /> <!-- listen / watch toggle --> <router-link :to="toggleListenUrl"