Skip to content

Commit

Permalink
fixed login form
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Apr 4, 2017
1 parent 24ac69e commit 0444ebd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions web/client/components/security/forms/LoginForm.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2016, GeoSolutions Sas.
* Copyright 2017, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
Expand All @@ -9,7 +9,7 @@
const React = require('react');
const {FormControl, FormGroup, ControlLabel, Button, Alert} = require('react-bootstrap');
const Spinner = require('react-spinkit');
const Message = require('../../../components/I18N/Message');
const Message = require('../../I18N/Message');
const LocaleUtils = require('../../../utils/LocaleUtils');

/**
Expand Down Expand Up @@ -87,12 +87,13 @@ const LoginForm = React.createClass({
return this.state.loading ? <Spinner spinnerName="circle" key="loadingSpinner" noFadeIn overrideSpinnerClassName="spinner"/> : null;
},
renderSubmit() {
let submitText = LocaleUtils.getMessageById(this.context.messages, "user.signIn");
if (this.props.showSubmitButton) {
return (<Button
type="submit"
value={LocaleUtils.getMessageById(this.context.messages, "user.signIn")}
value={submitText}
bsStyle="primary"
key="submit" onClick={this.handleSubmit}/>);
key="submit" onClick={this.handleSubmit}>{submitText}</Button>);
}
},
render() {
Expand Down

0 comments on commit 0444ebd

Please sign in to comment.