1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

change history dialog footer style (#3098)

This commit is contained in:
zxj96
2019-03-12 14:28:29 +08:00
committed by Daniel Pan
parent e8011d478e
commit 735bdfc9f3

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, Alert } from 'reactstrap';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Form, FormGroup, Label, Input, Alert } from 'reactstrap';
import { seafileAPI } from '../../utils/seafile-api.js';
const propTypes = {
@@ -127,9 +127,11 @@ class LibHistorySetting extends React.Component {
<Label><span>{gettext('days')}</span></Label>
</FormGroup>
{this.state.errorInfo && <Alert color="danger">{this.state.errorInfo}</Alert>}
<Button color="primary" onClick={this.submit}>{gettext('Submit')}</Button>
</Form>
</ModalBody>
<ModalFooter>
<Button color="primary" onClick={this.submit}>{gettext('Submit')}</Button>
</ModalFooter>
</Modal>
);
}