Web: Files: delete useless

This commit is contained in:
Viktor Fomin 2021-11-18 17:47:11 +03:00
parent c3cc75401c
commit d5fb86fd41

View File

@ -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);