add sub/upload count to youtube transfer status component

This commit is contained in:
Sean Yesmunt 2020-12-11 14:33:40 -05:00
parent 9a90a00c83
commit 6ac3b0d6cd
2 changed files with 14 additions and 1 deletions

View file

@ -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--"
}

View file

@ -102,7 +102,13 @@ export default function YoutubeTransferStatus(props: Props) {
body={
<section>
{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) {
<Icon icon={ICONS.COMPLETED} className="progress__complete-icon--completed" />
)}
</div>
<div className="help--inline">
{__('Syncing %total_videos% videos from your channel with %total_subs% subscriptions.', {
total_videos: totalVideos,
total_subs: totalSubs,
})}
</div>
<div className="progress__item">
{__('Claim your channel')}
<Icon icon={ICONS.NOT_COMPLETED} className={classnames('progress__complete-icon')} />