mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(files): allow silent batch actions errors
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
821800941b
commit
e407fb6563
3 changed files with 9 additions and 3 deletions
|
|
@ -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
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue