Merge pull request #42490 from nextcloud/backport/42452/stable28

[stable28] fix(files): allow silent batch actions errors
This commit is contained in:
Eduardo Morales 2023-12-27 09:44:18 -06:00 committed by GitHub
commit 3185b4ca26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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