fix(files): allow silent batch actions errors

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ 2023-12-22 11:44:03 +01:00
parent 821800941b
commit e407fb6563
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF
3 changed files with 9 additions and 3 deletions

View file

@ -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
}

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long