mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
fix export file access log (#6944)
* fix * update * optimize export log * update * update * update * fomrat-update --------- Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com> Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
This commit is contained in:
39
frontend/src/components/dialog/seahub-io-dialog.js
Normal file
39
frontend/src/components/dialog/seahub-io-dialog.js
Normal file
@@ -0,0 +1,39 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Modal, ModalBody, ModalHeader } from 'reactstrap';
|
||||
import { gettext } from '../../utils/constants';
|
||||
import Loading from '../loading';
|
||||
|
||||
import '../../css/seahub-io-dialog.css';
|
||||
|
||||
|
||||
const propTypes = {
|
||||
toggle: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
class SeahubIODialog extends React.Component {
|
||||
|
||||
toggle = () => {
|
||||
this.props.toggle();
|
||||
};
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Modal className='seahub-io-dialog' isOpen={true} toggle={this.toggle}>
|
||||
<ModalHeader toggle={this.toggle}>
|
||||
{gettext('Exporting')}
|
||||
</ModalHeader>
|
||||
<ModalBody>
|
||||
<>
|
||||
<Loading/>
|
||||
<div className="seahub-io-dialog-parsing-text">{gettext('Exporting...')}</div>
|
||||
</>
|
||||
</ModalBody>
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
SeahubIODialog.propTypes = propTypes;
|
||||
|
||||
export default SeahubIODialog;
|
Reference in New Issue
Block a user