mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -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
66c8f9c4dc
commit
58c6a8387b
1 changed files with 3 additions and 2 deletions
|
|
@ -351,13 +351,14 @@ export default {
|
|||
})
|
||||
},
|
||||
|
||||
updateAll() {
|
||||
async updateAll() {
|
||||
const limit = pLimit(1)
|
||||
this.apps
|
||||
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