mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
fix locked fields
This commit is contained in:
parent
3b46dbb9f5
commit
e0b2f352df
@ -148,7 +148,7 @@ let LoanForm = React.createClass({
|
||||
label={getLangText('Loanee Email')}
|
||||
onBlur={this.handleOnBlur}
|
||||
editable={!this.props.email}
|
||||
overrideForm={this.props.email}>
|
||||
overrideForm={!!this.props.email}>
|
||||
<input
|
||||
value={this.props.email}
|
||||
type="email"
|
||||
@ -159,7 +159,7 @@ let LoanForm = React.createClass({
|
||||
name='gallery_name'
|
||||
label={getLangText('Gallery/exhibition (optional)')}
|
||||
editable={!this.props.gallery}
|
||||
overrideForm={this.props.gallery}>
|
||||
overrideForm={!!this.props.gallery}>
|
||||
<input
|
||||
value={this.props.gallery}
|
||||
type="text"
|
||||
|
@ -121,7 +121,6 @@ let SlidesContainer = React.createClass({
|
||||
// then we want to "replace" (in this case append) the current url with ?slide_num=0
|
||||
if(isNaN(slideNum) && this.state.slideNum === -1) {
|
||||
slideNum = 0;
|
||||
|
||||
queryParams.slide_num = slideNum;
|
||||
|
||||
this.replaceWith(this.getPathname(), null, queryParams);
|
||||
|
Loading…
Reference in New Issue
Block a user