1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 03:18:23 +00:00

improve tip message (#2933)

* improve tip message

* restore model data
This commit is contained in:
杨顺强
2019-02-12 11:16:49 +08:00
committed by Daniel Pan
parent 4c8a528e38
commit 9e9de800c1
7 changed files with 13 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Modal, ModalHeader, ModalBody, ModalFooter, Alert } from 'reactstrap';
import { gettext, repoPasswordMinLength } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import { seafileAPI } from '../../utils/seafile-api';
@@ -117,7 +117,7 @@ class ChangeRepoPasswordDialog extends React.Component {
<input type="password" name="new_passwd" className="form-control" id="new-passwd" value={this.state.newPassword} onChange={this.handleNewPasswordInputChange} /><br />
<label htmlFor="new-passwd-again">{gettext('New Password Again')}</label><br />
<input type="password" name="new_passwd_again" className="form-control" id="new-passwd-again" value={this.state.newPasswordAgain} onChange={this.handleNewPasswordAgainInputChange} /><br />
{this.state.errorMsg && <p className="alert alert-danger" role="alert">{this.state.errorMsg}</p>}
{this.state.errorMsg && <Alert color="danger">{this.state.errorMsg}</Alert>}
</form>
</ModalBody>
<ModalFooter>