1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 19:08:21 +00:00

update share dtable list

This commit is contained in:
sniper-py
2019-07-01 10:09:07 +08:00
parent b84bffd400
commit 240ca9528a
6 changed files with 163 additions and 190 deletions

View File

@@ -1,39 +0,0 @@
import React from 'react';
import PropTypes from 'prop-types';
import { gettext } from '../../utils/constants';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
const propTypes = {
currentTable: PropTypes.object.isRequired,
leaveShareCancel: PropTypes.func.isRequired,
handleSubmit: PropTypes.func.isRequired,
};
class LeaveShareTableDialog extends React.Component {
toggle = () => {
this.props.leaveShareCancel();
};
render() {
let currentTable = this.props.currentTable;
let name = currentTable.name;
return (
<Modal isOpen={true} toggle={this.toggle}>
<ModalHeader toggle={this.toggle}>{gettext('Leave Share Table')}</ModalHeader>
<ModalBody>
<p>{gettext('Are you sure to leave share')}{' '}<b>{name}</b> ?</p>
</ModalBody>
<ModalFooter>
<Button color="secondary" onClick={this.toggle}>{gettext('Cancel')}</Button>
<Button color="primary" onClick={this.props.handleSubmit}>{gettext('Submit')}</Button>
</ModalFooter>
</Modal>
);
}
}
LeaveShareTableDialog.propTypes = propTypes;
export default LeaveShareTableDialog;