From c12a5f4977a1b1d9f1b630c99fa8d413a2c0fb0a Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Mon, 25 Apr 2016 17:32:59 +0200 Subject: [PATCH] Set the default editable status of the MarketFurtherDetails to be false Non-owners don't get provided an acl_edit in their edition acls, so the default behaviour of MarketAdditionalDetailsForm was to set the form to be editable. --- .../market/market_detail/market_further_details.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/components/whitelabel/wallet/components/market/market_detail/market_further_details.js b/js/components/whitelabel/wallet/components/market/market_detail/market_further_details.js index 064936c9..811cfa7f 100644 --- a/js/components/whitelabel/wallet/components/market/market_detail/market_further_details.js +++ b/js/components/whitelabel/wallet/components/market/market_detail/market_further_details.js @@ -2,7 +2,7 @@ import React from 'react'; -import MarketAdditionalDataForm from '../market_forms/market_additional_data_form' +import MarketAdditionalDataForm from '../market_forms/market_additional_data_form'; let MarketFurtherDetails = React.createClass({ propTypes: { @@ -14,6 +14,13 @@ let MarketFurtherDetails = React.createClass({ otherData: React.PropTypes.arrayOf(React.PropTypes.object) }, + getDefaultProps() { + // Override MarketAdditionalDataForm's default `editable` setting of true + return { + editable: false + }; + }, + render() { return (