added default note for channels with zero claims
This commit is contained in:
parent
b1fb65b1ec
commit
4672a72d02
2 changed files with 20 additions and 18 deletions
|
@ -25,7 +25,7 @@ class ChannelClaimsDisplay extends React.Component {
|
||||||
const { channel: { claimsData: { claims, currentPage, totalPages } } } = this.props;
|
const { channel: { claimsData: { claims, currentPage, totalPages } } } = this.props;
|
||||||
return (
|
return (
|
||||||
<div className="row row--tall">
|
<div className="row row--tall">
|
||||||
{claims &&
|
{(claims.length > 0) ? (
|
||||||
<div>
|
<div>
|
||||||
{claims.map((claim, index) => <AssetPreview
|
{claims.map((claim, index) => <AssetPreview
|
||||||
name={claim.name}
|
name={claim.name}
|
||||||
|
@ -43,7 +43,9 @@ class ChannelClaimsDisplay extends React.Component {
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
) : (
|
||||||
|
<p>There are no claims in this channel</p>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ const mapStateToProps = ({ show }) => {
|
||||||
const requestExtension = show.request.data.extension;
|
const requestExtension = show.request.data.extension;
|
||||||
// select request
|
// select request
|
||||||
const previousRequest = show.assetRequests[show.request.id] || null;
|
const previousRequest = show.assetRequests[show.request.id] || null;
|
||||||
// select asset infogit
|
// select asset info
|
||||||
let asset;
|
let asset;
|
||||||
if (previousRequest) {
|
if (previousRequest) {
|
||||||
const assetKey = `a#${previousRequest.name}#${previousRequest.claimId}`; // note: just store this in the request
|
const assetKey = `a#${previousRequest.name}#${previousRequest.claimId}`; // note: just store this in the request
|
||||||
|
|
Loading…
Reference in a new issue