diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-12-22 11:44:03 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-12-26 08:48:07 +0100 |
commit | e407fb656330c788dc186a9dff2d461739ae0e94 (patch) | |
tree | 558b317261083d8085aa03e219d485f5d25c29d3 /apps/files | |
parent | 821800941b937c1bb0d5c20c707ba67521265288 (diff) | |
download | nextcloud-server-e407fb656330c788dc186a9dff2d461739ae0e94.tar.gz nextcloud-server-e407fb656330c788dc186a9dff2d461739ae0e94.zip |
fix(files): allow silent batch actions errors
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/src/components/FilesListTableHeaderActions.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/src/components/FilesListTableHeaderActions.vue b/apps/files/src/components/FilesListTableHeaderActions.vue index 3b364a0b83d..73b9c429a3d 100644 --- a/apps/files/src/components/FilesListTableHeaderActions.vue +++ b/apps/files/src/components/FilesListTableHeaderActions.vue @@ -185,6 +185,12 @@ export default Vue.extend({ .filter((fileid, index) => results[index] === false) this.selectionStore.set(failedIds) + if (results.some(result => result === null)) { + // If some actions returned null, we assume that the dev + // is handling the error messages and we stay silent + return + } + showError(this.t('files', '"{displayName}" failed on some elements ', { displayName })) return } |