|
@@ -6,6 +6,7 @@ import { withUnstatedContainers } from '../../UnstatedUtils';
|
|
|
|
|
|
|
|
import AdminGeneralSecurityContainer from '../../../services/AdminGeneralSecurityContainer';
|
|
import AdminGeneralSecurityContainer from '../../../services/AdminGeneralSecurityContainer';
|
|
|
import ShareLinkList from '../../ShareLinkList';
|
|
import ShareLinkList from '../../ShareLinkList';
|
|
|
|
|
+import DeleteAllShareLinksModal from './DeleteAllShareLinksModal';
|
|
|
|
|
|
|
|
class ShareLinkSetting extends React.Component {
|
|
class ShareLinkSetting extends React.Component {
|
|
|
|
|
|
|
@@ -18,12 +19,17 @@ class ShareLinkSetting extends React.Component {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
this.showDeleteConfirmModal = this.showDeleteConfirmModal.bind(this);
|
|
this.showDeleteConfirmModal = this.showDeleteConfirmModal.bind(this);
|
|
|
|
|
+ this.closeDeleteConfirmModal = this.closeDeleteConfirmModal.bind(this);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
showDeleteConfirmModal() {
|
|
showDeleteConfirmModal() {
|
|
|
this.setState({ isDeleteConfirmModalShown: true });
|
|
this.setState({ isDeleteConfirmModalShown: true });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ closeDeleteConfirmModal() {
|
|
|
|
|
+ this.setState({ isDeleteConfirmModalShown: false });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
render() {
|
|
render() {
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
@@ -37,6 +43,11 @@ class ShareLinkSetting extends React.Component {
|
|
|
onClickDeleteButton={this.deleteLinkById}
|
|
onClickDeleteButton={this.deleteLinkById}
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
|
|
+ <DeleteAllShareLinksModal
|
|
|
|
|
+ isOpen={this.state.isDeleteConfirmModalShown}
|
|
|
|
|
+ onClose={this.closeDeleteConfirmModal}
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|