1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 20:37:42 +00:00

optimize auto delete (#5245)

* use batch delete files

* check enabled_repo_auto_del via seafevents config

* fix code
This commit is contained in:
王健辉
2022-08-17 11:16:50 +08:00
committed by GitHub
parent b4c78adc82
commit 5e356c1b65
6 changed files with 34 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Dropdown, DropdownMenu, DropdownToggle, DropdownItem } from 'reactstrap';
import { gettext, isPro, folderPermEnabled, enableRepoSnapshotLabel, enableResetEncryptedRepoPassword, isEmailConfigured } from '../../utils/constants';
import { gettext, isPro, folderPermEnabled, enableRepoSnapshotLabel, enableResetEncryptedRepoPassword, isEmailConfigured, enableRepoAutoDel } from '../../utils/constants';
import { Utils } from '../../utils/utils';
const propTypes = {
@@ -80,7 +80,7 @@ class MylibRepoMenu extends React.Component {
if (this.props.isPC && enableRepoSnapshotLabel) {
operations.push('Label Current State');
}
if (isPro) {
if (enableRepoAutoDel) {
operations.push('Old Files Auto Delete');
}
return operations;