fix(files): allow silent batch actions errors

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
pull/42452/head
John Molakvoæ 5 months ago
parent 821800941b
commit e407fb6563
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save