split, dedup pending and ready livestream uploads
This commit is contained in:
parent
441f13979d
commit
84f993200b
1 changed files with 20 additions and 4 deletions
|
@ -194,6 +194,7 @@ export default function LivestreamSetupPage(props: Props) {
|
||||||
)}
|
)}
|
||||||
{streamKey && totalLivestreamClaims.length > 0 && (
|
{streamKey && totalLivestreamClaims.length > 0 && (
|
||||||
<Card
|
<Card
|
||||||
|
className="section"
|
||||||
title={__('Your stream key')}
|
title={__('Your stream key')}
|
||||||
actions={
|
actions={
|
||||||
<>
|
<>
|
||||||
|
@ -217,10 +218,25 @@ export default function LivestreamSetupPage(props: Props) {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{totalLivestreamClaims.length > 0 ? (
|
{totalLivestreamClaims.length > 0 ? (
|
||||||
|
<>
|
||||||
|
{Boolean(pendingLiveStreamClaims.length) && (
|
||||||
|
<div className="section">
|
||||||
<ClaimList
|
<ClaimList
|
||||||
header={__('Your livestream uploads')}
|
header={__('Your pending livestream uploads')}
|
||||||
uris={totalLivestreamClaims.map((claim) => claim.permanent_url)}
|
uris={pendingLiveStreamClaims.map((claim) => claim.permanent_url)}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<div className="section">
|
||||||
|
<ClaimList
|
||||||
|
className="section"
|
||||||
|
header={__('Your livestream uploads')}
|
||||||
|
uris={livestreamClaims
|
||||||
|
.filter((c) => !pendingLiveStreamClaims.some((p) => p.permanent_url === c.permanent_url))
|
||||||
|
.map((claim) => claim.permanent_url)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Yrbl
|
<Yrbl
|
||||||
className="livestream__publish-intro"
|
className="livestream__publish-intro"
|
||||||
|
|
Loading…
Reference in a new issue