From e407fb656330c788dc186a9dff2d461739ae0e94 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Fri, 22 Dec 2023 11:44:03 +0100 Subject: fix(files): allow silent batch actions errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/src/components/FilesListTableHeaderActions.vue | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/files/src/components/FilesListTableHeaderActions.vue') 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 } -- cgit v1.2.3