Skip to content

Commit e4ab223

Browse files
committed
fix(ui): task summary
1 parent f23f97c commit e4ab223

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

web/src/components/AnsibleStageView.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ export default {
145145
okServers: 0,
146146
notOkServers: 0,
147147
tab: 'notOkServers',
148+
failedTasks: null,
149+
hosts: null,
148150
};
149151
},
150152
@@ -162,9 +164,11 @@ export default {
162164
163165
methods: {
164166
async loadData() {
165-
this.failedTasks = await this.loadProjectEndpoint(`/tasks/${this.taskId}/ansible/errors`);
166-
this.hosts = await this.loadProjectEndpoint(`/tasks/${this.taskId}/ansible/hosts`);
167-
this.stages = await this.loadProjectEndpoint(`/tasks/${this.taskId}/stages`);
167+
[this.failedTasks, this.hosts, this.stages] = await Promise.all([
168+
this.loadProjectEndpoint(`/tasks/${this.taskId}/ansible/errors`),
169+
this.loadProjectEndpoint(`/tasks/${this.taskId}/ansible/hosts`),
170+
this.loadProjectEndpoint(`/tasks/${this.taskId}/stages`),
171+
]);
168172
},
169173
170174
calcStats() {

0 commit comments

Comments
 (0)