From da6c3cc03ac87aa1bab905501a6fefb3be8252e8 Mon Sep 17 00:00:00 2001 From: vrde Date: Fri, 18 Sep 2015 10:07:14 +0200 Subject: [PATCH] Working on forms --- js/components/ascribe_detail/edition.js | 1 + js/components/ascribe_detail/further_details.js | 5 +++-- js/components/ascribe_forms/form_piece_extradata.js | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js index f64f8634..423fae7d 100644 --- a/js/components/ascribe_detail/edition.js +++ b/js/components/ascribe_detail/edition.js @@ -387,6 +387,7 @@ let SpoolDetails = React.createClass({ {this.props.edition.btc_owner_address_noprefix} ); + // FIXME: do not use `Form`s to display static values return (
- + + multiple={true} /> diff --git a/js/components/ascribe_forms/form_piece_extradata.js b/js/components/ascribe_forms/form_piece_extradata.js index 293ca09e..b25e1c13 100644 --- a/js/components/ascribe_forms/form_piece_extradata.js +++ b/js/components/ascribe_forms/form_piece_extradata.js @@ -41,7 +41,9 @@ let PieceExtraDataForm = React.createClass({ ref='form' url={url} handleSuccess={this.props.handleSuccess} - getFormData={this.getFormData}> + getFormData={this.getFormData} + showButtonsOnEdit={true} + buttonCancel={true}>