From ff163df61ebe8d8e92643fc2f72d1a800c6e48f5 Mon Sep 17 00:00:00 2001 From: diminator Date: Thu, 17 Sep 2015 14:20:46 +0200 Subject: [PATCH] PR update --- js/components/ascribe_detail/edition.js | 5 +++-- js/components/ascribe_detail/piece_container.js | 5 ++--- .../ascribe_forms/form_copyright_association.js | 2 +- js/components/ascribe_forms/form_login.js | 2 +- js/components/ascribe_forms/form_signup.js | 2 +- .../ascribe_detail/cyland_piece_container.js | 5 ++--- .../ascribe_detail/ikonotv_piece_container.js | 5 ++--- .../ikonotv/ikonotv_contract_notifications.js | 16 +++++++--------- .../wallet/components/ikonotv/ikonotv_landing.js | 3 +-- .../components/ikonotv/ikonotv_register_piece.js | 10 ++-------- js/fetchers/ownership_fetcher.js | 8 ++++++++ 11 files changed, 30 insertions(+), 33 deletions(-) diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js index 1e69a7ab..f2dbf682 100644 --- a/js/components/ascribe_detail/edition.js +++ b/js/components/ascribe_detail/edition.js @@ -152,8 +152,9 @@ let Edition = React.createClass({ + show={!!(this.state.currentUser.username + || this.props.edition.acl.acl_edit + || this.props.edition.public_note)}> {return {'bitcoin_id': this.props.edition.bitcoin_id}; }} label={getLangText('Personal note (private)')} diff --git a/js/components/ascribe_detail/piece_container.js b/js/components/ascribe_detail/piece_container.js index 4f8d8d8d..f14cf743 100644 --- a/js/components/ascribe_detail/piece_container.js +++ b/js/components/ascribe_detail/piece_container.js @@ -237,12 +237,11 @@ let PieceContainer = React.createClass({ + show={!!(this.state.currentUser.username || this.state.piece.public_note)}>