File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,8 @@ export default {
145
145
okServers: 0 ,
146
146
notOkServers: 0 ,
147
147
tab: ' notOkServers' ,
148
+ failedTasks: null ,
149
+ hosts: null ,
148
150
};
149
151
},
150
152
@@ -162,9 +164,11 @@ export default {
162
164
163
165
methods: {
164
166
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
+ ]);
168
172
},
169
173
170
174
calcStats () {
You can’t perform that action at this time.
0 commit comments