diff --git a/js/components/ascribe_forms/form.js b/js/components/ascribe_forms/form.js index 8522825c..12e4ebae 100644 --- a/js/components/ascribe_forms/form.js +++ b/js/components/ascribe_forms/form.js @@ -210,7 +210,7 @@ let Form = React.createClass({ // We need this in order to make editable be overridable when setting it directly // on Property - editable: typeof child.props.editable !== 'undefined' ? child.props.editable : !this.props.disabled + editable: child.props.overrideForm ? child.props.editable : !this.props.disabled }); } }); diff --git a/js/components/ascribe_forms/form_loan.js b/js/components/ascribe_forms/form_loan.js index 3fc6bd6e..201ba174 100644 --- a/js/components/ascribe_forms/form_loan.js +++ b/js/components/ascribe_forms/form_loan.js @@ -147,7 +147,8 @@ let LoanForm = React.createClass({ name='loanee' label={getLangText('Loanee Email')} onBlur={this.handleOnBlur} - editable={!this.props.email}> + editable={!this.props.email} + overrideForm={!this.props.email}> + editable={!this.props.gallery} + overrideForm={!this.props.gallery}> { - if(i >= this.state.startFrom) { + if(i >= this.state.startFrom && child.props['data-slide-title']) { breadcrumbs.push(child.props['data-slide-title']); } });