From 6ac3b0d6cd1ac1aa695c4496a8302b5d1947346c Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 11 Dec 2020 14:33:40 -0500 Subject: [PATCH] add sub/upload count to youtube transfer status component --- static/app-strings.json | 1 + ui/component/youtubeTransferStatus/view.jsx | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/static/app-strings.json b/static/app-strings.json index 22a596020..16c984711 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1504,5 +1504,6 @@ "Now following %channel%!": "Now following %channel%!", "Turn Back On": "Turn Back On", "Turn Off": "Turn Off", + "Syncing %total_videos% videos from your channel with %total_subs% subscriptions.": "Syncing %total_videos% videos from your channel with %total_subs% subscriptions.", "--end--": "--end--" } diff --git a/ui/component/youtubeTransferStatus/view.jsx b/ui/component/youtubeTransferStatus/view.jsx index 443761b41..82ad90ad9 100644 --- a/ui/component/youtubeTransferStatus/view.jsx +++ b/ui/component/youtubeTransferStatus/view.jsx @@ -102,7 +102,13 @@ export default function YoutubeTransferStatus(props: Props) { body={
{youtubeChannels.map((channel, index) => { - const { lbry_channel_name: channelName, channel_claim_id: claimId, sync_status: syncStatus } = channel; + const { + lbry_channel_name: channelName, + channel_claim_id: claimId, + sync_status: syncStatus, + total_subs: totalSubs, + total_videos: totalVideos, + } = channel; const url = buildURI({ channelName, channelClaimId: claimId }); const transferState = getMessage(channel); const isWaitingForSync = @@ -142,6 +148,12 @@ export default function YoutubeTransferStatus(props: Props) { )} +
+ {__('Syncing %total_videos% videos from your channel with %total_subs% subscriptions.', { + total_videos: totalVideos, + total_subs: totalSubs, + })} +
{__('Claim your channel')}