mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Minor changes for integrating PR Feedback
This commit is contained in:
parent
343d6bfea2
commit
56d8726a0b
@ -202,7 +202,6 @@ let RegisterPieceForm = React.createClass({
|
|||||||
allowedExtensions: ['png', 'jpg', 'jpeg', 'gif']
|
allowedExtensions: ['png', 'jpg', 'jpeg', 'gif']
|
||||||
}}
|
}}
|
||||||
setIsUploadReady={this.setIsUploadReady('thumbnailKeyReady')}
|
setIsUploadReady={this.setIsUploadReady('thumbnailKeyReady')}
|
||||||
location={location}
|
|
||||||
fileClassToUpload={{
|
fileClassToUpload={{
|
||||||
singular: getLangText('Select representative image'),
|
singular: getLangText('Select representative image'),
|
||||||
plural: getLangText('Select representative images')
|
plural: getLangText('Select representative images')
|
||||||
|
@ -283,10 +283,6 @@ const Property = React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
handleCheckboxToggle() {
|
|
||||||
this.setState({expanded: !this.state.expanded});
|
|
||||||
},
|
|
||||||
|
|
||||||
getCheckbox() {
|
getCheckbox() {
|
||||||
const { checkboxLabel } = this.props;
|
const { checkboxLabel } = this.props;
|
||||||
|
|
||||||
@ -310,7 +306,6 @@ const Property = React.createClass({
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
let footer = null;
|
let footer = null;
|
||||||
let style = Object.assign({}, this.props.style);
|
|
||||||
|
|
||||||
if(this.props.footer){
|
if(this.props.footer){
|
||||||
footer = (
|
footer = (
|
||||||
@ -320,14 +315,11 @@ const Property = React.createClass({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
style.paddingBottom = !this.state.expanded ? 0 : null;
|
|
||||||
style.cursor = !this.props.editable ? 'not-allowed' : null;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={'ascribe-property-wrapper ' + this.getClassName()}
|
className={'ascribe-property-wrapper ' + this.getClassName()}
|
||||||
onClick={this.handleFocus}
|
onClick={this.handleFocus}
|
||||||
style={style}>
|
style={this.props.style}>
|
||||||
{this.getCheckbox()}
|
{this.getCheckbox()}
|
||||||
<Panel
|
<Panel
|
||||||
collapsible
|
collapsible
|
||||||
|
Loading…
Reference in New Issue
Block a user