From 54811f2800f19a65c45df0ab36e15a62795b980c Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 16 Jun 2023 17:05:21 +0200 Subject: [PATCH] Simplify buttons to view content on different platform --- src/components/ChannelPage.vue | 6 +++--- src/components/PlaylistPage.vue | 6 +++--- ...chOnOdyseeButton.vue => WatchOnButton.vue} | 11 +++++++--- src/components/WatchOnYouTubeButton.vue | 21 ------------------- src/components/WatchVideo.vue | 10 ++++----- 5 files changed, 18 insertions(+), 36 deletions(-) rename src/components/{WatchOnOdyseeButton.vue => WatchOnButton.vue} (52%) delete mode 100644 src/components/WatchOnYouTubeButton.vue diff --git a/src/components/ChannelPage.vue b/src/components/ChannelPage.vue index 2f93b519..062bb983 100644 --- a/src/components/ChannelPage.vue +++ b/src/components/ChannelPage.vue @@ -44,7 +44,7 @@ - +
@@ -55,13 +55,13 @@ import ErrorHandler from "./ErrorHandler.vue"; import LoadingIndicatorPage from "./LoadingIndicatorPage.vue"; import CollapsableText from "./CollapsableText.vue"; import VideoItem from "./VideoItem.vue"; -import WatchOnYouTubeButton from "./WatchOnYouTubeButton.vue"; +import WatchOnButton from "./WatchOnButton.vue"; export default { components: { ErrorHandler, VideoItem, - WatchOnYouTubeButton, + WatchOnButton, LoadingIndicatorPage, CollapsableText, }, diff --git a/src/components/WatchOnOdyseeButton.vue b/src/components/WatchOnButton.vue similarity index 52% rename from src/components/WatchOnOdyseeButton.vue rename to src/components/WatchOnButton.vue index c381f5a8..e97f33f4 100644 --- a/src/components/WatchOnOdyseeButton.vue +++ b/src/components/WatchOnButton.vue @@ -2,6 +2,11 @@ export default { props: { link: String, + platform: { + type: String, + required: false, + default: "YouTube", + }, }, }; @@ -10,12 +15,12 @@ export default { diff --git a/src/components/WatchOnYouTubeButton.vue b/src/components/WatchOnYouTubeButton.vue deleted file mode 100644 index ae54984b..00000000 --- a/src/components/WatchOnYouTubeButton.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index a1351182..52fc42f3 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -119,9 +119,9 @@ - + - +