1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +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

@@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { gettext, enableRepoHistorySetting } from '../../utils/constants';
import toaster from '../toast';
import { Button, Modal, ModalHeader, ModalBody, Form, FormGroup, Label, Input } from 'reactstrap';
import { Button, Modal, ModalHeader, ModalBody, Form, FormGroup, Label, Input, Alert } from 'reactstrap';
import { seafileAPI } from '../../utils/seafile-api.js';
const propTypes = {
@@ -126,7 +126,7 @@ class LibHistorySetting extends React.Component {
/>{' '}
<Label><span>{gettext('days')}</span></Label>
</FormGroup>
<Label className="err-message">{this.state.errorInfo}</Label><br />
{this.state.errorInfo && <Alert color="danger">{this.state.errorInfo}</Alert>}
<Button color="primary" onClick={this.submit}>{gettext('Submit')}</Button>
</Form>
</ModalBody>