mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
add sub/upload count to youtube transfer status component
This commit is contained in:
parent
9a90a00c83
commit
6ac3b0d6cd
2 changed files with 14 additions and 1 deletions
|
@ -1504,5 +1504,6 @@
|
||||||
"Now following %channel%!": "Now following %channel%!",
|
"Now following %channel%!": "Now following %channel%!",
|
||||||
"Turn Back On": "Turn Back On",
|
"Turn Back On": "Turn Back On",
|
||||||
"Turn Off": "Turn Off",
|
"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--"
|
"--end--": "--end--"
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,13 @@ export default function YoutubeTransferStatus(props: Props) {
|
||||||
body={
|
body={
|
||||||
<section>
|
<section>
|
||||||
{youtubeChannels.map((channel, index) => {
|
{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 url = buildURI({ channelName, channelClaimId: claimId });
|
||||||
const transferState = getMessage(channel);
|
const transferState = getMessage(channel);
|
||||||
const isWaitingForSync =
|
const isWaitingForSync =
|
||||||
|
@ -142,6 +148,12 @@ export default function YoutubeTransferStatus(props: Props) {
|
||||||
<Icon icon={ICONS.COMPLETED} className="progress__complete-icon--completed" />
|
<Icon icon={ICONS.COMPLETED} className="progress__complete-icon--completed" />
|
||||||
)}
|
)}
|
||||||
</div>
|
</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">
|
<div className="progress__item">
|
||||||
{__('Claim your channel')}
|
{__('Claim your channel')}
|
||||||
<Icon icon={ICONS.NOT_COMPLETED} className={classnames('progress__complete-icon')} />
|
<Icon icon={ICONS.NOT_COMPLETED} className={classnames('progress__complete-icon')} />
|
||||||
|
|
Loading…
Add table
Reference in a new issue