From 8c7c1cfd5ccfa700f295d617f9b390b9c7a376fa Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Thu, 31 Mar 2022 01:46:09 -0400 Subject: [PATCH] fixes from review remove config, remove unused app strings + add new, add disabled message --- config.js | 1 - static/app-strings.json | 2 +- ui/page/livestreamSetup/view.jsx | 9 +++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index ce5c8276f..4dc0bf12a 100644 --- a/config.js +++ b/config.js @@ -63,7 +63,6 @@ const config = { ENABLE_NO_SOURCE_CLAIMS: process.env.ENABLE_NO_SOURCE_CLAIMS === 'true', ENABLE_PREROLL_ADS: process.env.ENABLE_PREROLL_ADS === 'true', CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS: process.env.CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS, - CHANNEL_STAKED_LEVEL_LIVESTREAM: process.env.CHANNEL_STAKED_LEVEL_LIVESTREAM, CHANNEL_CREATION_LIMIT: process.env.CHANNEL_CREATION_LIMIT, WEB_PUBLISH_SIZE_LIMIT_GB: process.env.WEB_PUBLISH_SIZE_LIMIT_GB, LOADING_BAR_COLOR: process.env.LOADING_BAR_COLOR, diff --git a/static/app-strings.json b/static/app-strings.json index 513e46fa0..3f86fc7d7 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1706,7 +1706,6 @@ "People who view this link will be redirected to your livestream. Make sure to use this for sharing so your title and thumbnail are displayed properly.": "People who view this link will be redirected to your livestream. Make sure to use this for sharing so your title and thumbnail are displayed properly.", "View livestream": "View livestream", "You need to upload your livestream details before you can go live. Please note: Replays must be published manually after your stream via the Update button on the livestream.": "You need to upload your livestream details before you can go live. Please note: Replays must be published manually after your stream via the Update button on the livestream.", - "To stream on Odysee, please join Odysee Premium or have 50 Credits as support on your channel": "To stream on Odysee, please join Odysee Premium or have 50 Credits as support on your channel", "Join Odysee Premium": "Join Odysee Premium", "Create A Livestream": "Create A Livestream", "Go Live on Odysee": "Go Live on Odysee", @@ -2229,5 +2228,6 @@ "Canceled On": "Canceled On", "Still Valid Until": "Still Valid Until", "Active channel": "Active channel", + "This account has livestreaming disabled, please reach out to hello@odysee.com for assistance.": "This account has livestreaming disabled, please reach out to hello@odysee.com for assistance.", "--end--": "--end--" } diff --git a/ui/page/livestreamSetup/view.jsx b/ui/page/livestreamSetup/view.jsx index 4cd5658c9..909d1b7f9 100644 --- a/ui/page/livestreamSetup/view.jsx +++ b/ui/page/livestreamSetup/view.jsx @@ -184,6 +184,15 @@ export default function LivestreamSetupPage(props: Props) { )} + {/* livestreaming disabled */} + {!livestreamEnabled && ( +
+

+ {__('This account has livestreaming disabled, please reach out to hello@odysee.com for assistance.')} +

+
+ )} + {/* show livestreaming frontend */} {livestreamEnabled && (