Show the public note on editions

Public notes should be visible either when there is one already saved,
or if you can edit the field
This commit is contained in:
Brett Sun 2016-05-02 11:13:24 +02:00
parent e0a9d1ccba
commit a8df08c01e
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ let Edition = React.createClass({
defaultValue={edition.public_note ? edition.public_note : null}
placeholder={getLangText('Enter your comments ...')}
editable={!!edition.acl.acl_edit}
show={!!(edition.public_note && edition.acl.acl_edit)}
show={!!(edition.public_note || edition.acl.acl_edit)}
successMessage={getLangText('Public edition note saved')}
url={ApiUrls.note_public_edition}
currentUser={currentUser} />