From ffdb4847dbd50c5b3419094d54885d4460e9668f Mon Sep 17 00:00:00 2001 From: diminator Date: Thu, 20 Aug 2015 14:01:02 +0200 Subject: [PATCH] piece bitcoin id --- .../ascribe_detail/piece_container.js | 50 +++++++++++++++++++ .../ascribe_detail/prize_piece_container.js | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/js/components/ascribe_detail/piece_container.js b/js/components/ascribe_detail/piece_container.js index 1552a985..2c36035b 100644 --- a/js/components/ascribe_detail/piece_container.js +++ b/js/components/ascribe_detail/piece_container.js @@ -28,6 +28,11 @@ import DeleteButton from '../ascribe_buttons/delete_button'; import GlobalNotificationModel from '../../models/global_notification_model'; import GlobalNotificationActions from '../../actions/global_notification_actions'; +import Form from '../ascribe_forms/form'; +import Property from '../ascribe_forms/property'; +import InputTextAreaToggable from '../ascribe_forms/input_textarea_toggable'; + +import ApiUrls from '../../constants/api_urls'; import AppConstants from '../../constants/application_constants'; import { mergeOptions } from '../../utils/general_utils'; import { getLangText } from '../../utils/lang_utils'; @@ -159,6 +164,7 @@ let PieceContainer = React.createClass({ subheader={
+
} buttons={ @@ -192,6 +198,11 @@ let PieceContainer = React.createClass({ otherData={this.state.piece.other_data} handleSuccess={this.loadPiece}/> + { + // + } ); } else { @@ -204,4 +215,43 @@ let PieceContainer = React.createClass({ } }); + +let PersonalNote = React.createClass({ + propTypes: { + piece: React.PropTypes.object, + currentUser: React.PropTypes.object + }, + showNotification(){ + let notification = new GlobalNotificationModel(getLangText('Jury note saved'), 'success'); + GlobalNotificationActions.appendGlobalNotification(notification); + }, + + render() { + if (this.props.currentUser.username && true || false) { + return ( +
+ + + + +
+
+ ); + } + return null; + } +}); + + export default PieceContainer; diff --git a/js/components/whitelabel/prize/components/ascribe_detail/prize_piece_container.js b/js/components/whitelabel/prize/components/ascribe_detail/prize_piece_container.js index b41703e7..6ce3a852 100644 --- a/js/components/whitelabel/prize/components/ascribe_detail/prize_piece_container.js +++ b/js/components/whitelabel/prize/components/ascribe_detail/prize_piece_container.js @@ -256,7 +256,7 @@ let PersonalNote = React.createClass({ ); } - return nul + return null; } });