diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-26 16:04:07 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2024-07-27 07:13:39 +0000 |
commit | e32b3352898f2e86836fd29d248fd9bb6588a2ca (patch) | |
tree | 3d0c5f9d6c8f36afcff92dc9a2823d3b06418594 /__mocks__ | |
parent | 205ee83438790cde74e7a03aa0011f6ac01e3570 (diff) | |
download | nextcloud-server-e32b3352898f2e86836fd29d248fd9bb6588a2ca.tar.gz nextcloud-server-e32b3352898f2e86836fd29d248fd9bb6588a2ca.zip |
fix(files): always ask for confirmation if trashbin app is disabled
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to '__mocks__')
-rw-r--r-- | __mocks__/@nextcloud/capabilities.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/__mocks__/@nextcloud/capabilities.ts b/__mocks__/@nextcloud/capabilities.ts new file mode 100644 index 00000000000..b2b33773403 --- /dev/null +++ b/__mocks__/@nextcloud/capabilities.ts @@ -0,0 +1,22 @@ +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ +import type { Capabilities } from '../../apps/files/src/types' + +export const getCapabilities = (): Capabilities => { + return { + files: { + bigfilechunking: true, + blacklisted_files: [], + forbidden_filename_basenames: [], + forbidden_filename_characters: [], + forbidden_filename_extensions: [], + forbidden_filenames: [], + undelete: true, + version_deletion: true, + version_labeling: true, + versioning: true, + }, + } +} |