mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
fix: update all button only updates a single app
Signed-off-by: Thomas Lamant <tom@tmlmt.com>
This commit is contained in:
parent
1a09d2b6a1
commit
5f06e265b2
1 changed files with 4 additions and 3 deletions
|
|
@ -325,13 +325,14 @@ export default {
|
|||
OC.Notification.show(error)
|
||||
})
|
||||
},
|
||||
updateAll() {
|
||||
async updateAll() {
|
||||
const limit = pLimit(1)
|
||||
this.apps
|
||||
.filter(app => app.update)
|
||||
const updateTasks = this.apps
|
||||
.filter((app) => app.update)
|
||||
.map((app) => limit(() => {
|
||||
this.update(app.id)
|
||||
}))
|
||||
await Promise.all(updateTasks)
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue