mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-07 15:33:50 +08:00
Merge pull request #817 from mlorb/ml-sci-1632
Fixes buttons on my profile page [SCI-1632]
This commit is contained in:
commit
8bd698e5c3
1 changed files with 12 additions and 9 deletions
|
@ -7,6 +7,7 @@ import {
|
||||||
FormControl,
|
FormControl,
|
||||||
ControlLabel,
|
ControlLabel,
|
||||||
Button,
|
Button,
|
||||||
|
ButtonToolbar,
|
||||||
HelpBlock
|
HelpBlock
|
||||||
} from "react-bootstrap";
|
} from "react-bootstrap";
|
||||||
import { updateUser } from "../../../../../services/api/users_api";
|
import { updateUser } from "../../../../../services/api/users_api";
|
||||||
|
@ -374,12 +375,14 @@ class InputEnabled extends Component {
|
||||||
{this.inputField()}
|
{this.inputField()}
|
||||||
{this.confirmationField()}
|
{this.confirmationField()}
|
||||||
<StyledHelpBlock>{this.state.errorMessage}</StyledHelpBlock>
|
<StyledHelpBlock>{this.state.errorMessage}</StyledHelpBlock>
|
||||||
<Button bsStyle="default" onClick={this.props.disableEdit}>
|
<ButtonToolbar>
|
||||||
<FormattedMessage id="general.cancel" />
|
|
||||||
</Button>
|
|
||||||
<Button bsStyle="primary" type="submit">
|
<Button bsStyle="primary" type="submit">
|
||||||
<FormattedMessage id="general.update" />
|
<FormattedMessage id="general.update" />
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button bsStyle="default" onClick={this.props.disableEdit}>
|
||||||
|
<FormattedMessage id="general.cancel" />
|
||||||
|
</Button>
|
||||||
|
</ButtonToolbar>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</form>
|
</form>
|
||||||
</StyledInputEnabled>
|
</StyledInputEnabled>
|
||||||
|
@ -399,7 +402,7 @@ InputEnabled.propTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
InputEnabled.defaultProps = {
|
InputEnabled.defaultProps = {
|
||||||
forceRerender: () => (false)
|
forceRerender: () => false
|
||||||
}
|
};
|
||||||
|
|
||||||
export default InputEnabled;
|
export default InputEnabled;
|
||||||
|
|
Loading…
Reference in a new issue