Web: Files: delete useless
This commit is contained in:
parent
c3cc75401c
commit
d5fb86fd41
@ -256,11 +256,6 @@ class SectionHeaderContent extends React.Component {
|
||||
};
|
||||
|
||||
onEmptyTrashAction = () => this.props.setEmptyTrashDialogVisible(true);
|
||||
//TODO: add restore all api method
|
||||
onRestoreAllAction = () => {
|
||||
this.props.setSelected("all");
|
||||
this.props.setMoveToPanelVisible(true);
|
||||
};
|
||||
|
||||
getContextOptionsFolder = () => {
|
||||
const { t } = this.props;
|
||||
@ -311,26 +306,6 @@ class SectionHeaderContent extends React.Component {
|
||||
];
|
||||
};
|
||||
|
||||
getContextOptionsTrash = () => {
|
||||
const { t } = this.props;
|
||||
return [
|
||||
{
|
||||
key: "clear-trash",
|
||||
label: t("EmptyRecycleBin"),
|
||||
icon: "images/clear.active.react.svg",
|
||||
onClick: this.onEmptyTrashAction,
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
key: "restore-all",
|
||||
label: t("Translations:Restore"),
|
||||
icon: "images/move.react.svg",
|
||||
onClick: this.onRestoreAllAction,
|
||||
disabled: false,
|
||||
},
|
||||
];
|
||||
};
|
||||
|
||||
onBackToParentFolder = () => {
|
||||
const { setIsLoading, parentId, filter, fetchFiles } = this.props;
|
||||
setIsLoading(true);
|
||||
|
Loading…
Reference in New Issue
Block a user