1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

fix warning

This commit is contained in:
ilearnit
2018-12-21 06:25:15 +00:00
parent e035f2a381
commit afc16b3f5d
4 changed files with 60 additions and 48 deletions

View File

@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import AsyncSelect from 'react-select/lib/Async';
import toaster from '../toast';
import { gettext } from '../../utils/constants';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, Modal, ModalHeader, ModalBody } from 'reactstrap';
import { seafileAPI } from '../../utils/seafile-api.js';
const propTypes = {
@@ -58,10 +58,10 @@ class TransferDialog extends React.Component {
this.props.submit(repoID);
this.props.toggleDialog();
}).catch(res => {
let message = gettext('Failed. Please check the network.')
this.props.toggleDialog();
toaster.danger(message);
})
let message = gettext('Failed. Please check the network.');
this.props.toggleDialog();
toaster.danger(message);
});
}
render() {