mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Merge pull request #195 from ascribe/AG-194-non-owners-can-edit-further-details
Set the default editable status of the MarketFurtherDetails to be false
This commit is contained in:
commit
e0a9d1ccba
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import React from 'react';
|
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({
|
let MarketFurtherDetails = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
@ -14,6 +14,13 @@ let MarketFurtherDetails = React.createClass({
|
|||||||
otherData: React.PropTypes.arrayOf(React.PropTypes.object)
|
otherData: React.PropTypes.arrayOf(React.PropTypes.object)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getDefaultProps() {
|
||||||
|
// Override MarketAdditionalDataForm's default `editable` setting of true
|
||||||
|
return {
|
||||||
|
editable: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<MarketAdditionalDataForm
|
<MarketAdditionalDataForm
|
||||||
|
Loading…
Reference in New Issue
Block a user