mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
Add comment for bug fix hiding actions from detail pages
This commit is contained in:
parent
2b6c9777e9
commit
9392a71b33
@ -210,6 +210,11 @@ let EditionSummary = React.createClass({
|
|||||||
value={ edition.owner } />
|
value={ edition.owner } />
|
||||||
<LicenseDetail license={edition.license_type}/>
|
<LicenseDetail license={edition.license_type}/>
|
||||||
{this.getStatus()}
|
{this.getStatus()}
|
||||||
|
{/*
|
||||||
|
`acl_view` is always available in `edition.acl`, therefore if it has
|
||||||
|
no more than 1 key, we're hiding the `DetailProperty` actions as otherwise
|
||||||
|
`AclInformation` would show up
|
||||||
|
*/}
|
||||||
<AclProxy show={currentUser && currentUser.email && Object.keys(edition.acl).length > 1}>
|
<AclProxy show={currentUser && currentUser.email && Object.keys(edition.acl).length > 1}>
|
||||||
<EditionDetailProperty
|
<EditionDetailProperty
|
||||||
label={getLangText('ACTIONS')}>
|
label={getLangText('ACTIONS')}>
|
||||||
|
@ -197,6 +197,11 @@ let PieceContainer = React.createClass({
|
|||||||
return (
|
return (
|
||||||
<AclProxy
|
<AclProxy
|
||||||
show={currentUser && currentUser.email && Object.keys(piece.acl).length > 1}>
|
show={currentUser && currentUser.email && Object.keys(piece.acl).length > 1}>
|
||||||
|
{/*
|
||||||
|
`acl_view` is always available in `edition.acl`, therefore if it has
|
||||||
|
no more than 1 key, we're hiding the `DetailProperty` actions as otherwise
|
||||||
|
`AclInformation` would show up
|
||||||
|
*/}
|
||||||
<DetailProperty label={getLangText('ACTIONS')}>
|
<DetailProperty label={getLangText('ACTIONS')}>
|
||||||
<AclButtonList
|
<AclButtonList
|
||||||
className="ascribe-button-list"
|
className="ascribe-button-list"
|
||||||
|
Loading…
Reference in New Issue
Block a user