From 53d3efe8950e741ece59edefa5c9de530882758f Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 21 Dec 2020 14:47:28 -0500 Subject: [PATCH] update youtube sync text for channels that don't qualify --- ui/component/youtubeTransferStatus/view.jsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/ui/component/youtubeTransferStatus/view.jsx b/ui/component/youtubeTransferStatus/view.jsx index fbf337270..b768f386f 100644 --- a/ui/component/youtubeTransferStatus/view.jsx +++ b/ui/component/youtubeTransferStatus/view.jsx @@ -10,6 +10,7 @@ import { YOUTUBE_STATUSES } from 'lbryinc'; import { buildURI } from 'lbry-redux'; import Spinner from 'component/spinner'; import Icon from 'component/common/icon'; +import I18nMessage from 'component/i18nMessage'; type Props = { youtubeChannels: Array, @@ -46,6 +47,9 @@ export default function YoutubeTransferStatus(props: Props) { channel.sync_status === YOUTUBE_STATUSES.YOUTUBE_SYNC_ABANDONDED ); + const isNotElligible = + hasChannels && youtubeChannels.every(channel => channel.sync_status === YOUTUBE_STATUSES.YOUTUBE_SYNC_ABANDONDED); + let total; let complete; if (hasPendingTransfers && videosImported) { @@ -91,7 +95,9 @@ export default function YoutubeTransferStatus(props: Props) { (alwaysShow || (hasChannels && !isYoutubeTransferComplete)) && ( 1 ? __('Your YouTube channels') @@ -105,9 +111,17 @@ export default function YoutubeTransferStatus(props: Props) { {!transferEnabled && !hasPendingTransfers && !isYoutubeTransferComplete && + !isNotElligible && __('Please check back later. This may take up to 1 week.')} - {isYoutubeTransferComplete && __('View your channel or choose a new channel to sync.')} + {isYoutubeTransferComplete && !isNotElligible && __('View your channel or choose a new channel to sync.')} + {isNotElligible && ( + }} + > + Email help@lbry.com if you think there has been a mistake. Make sure your channel qualifies %here%. + + )} } body={