Skip to content

Commit 3a1f07b

Browse files
tmlmtAndyScherzinger
authored andcommitted
fix: update all button only updates a single app
Signed-off-by: Thomas Lamant <[email protected]>
1 parent 1158319 commit 3a1f07b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/settings/src/components/AppList.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,14 @@ export default {
351351
})
352352
},
353353
354-
updateAll() {
354+
async updateAll() {
355355
const limit = pLimit(1)
356-
this.apps
356+
const updateTasks = this.apps
357357
.filter((app) => app.update)
358358
.map((app) => limit(() => {
359359
this.update(app.id)
360360
}))
361+
await Promise.all(updateTasks)
361362
},
362363
},
363364
}

0 commit comments

Comments
 (0)