File tree Expand file tree Collapse file tree 6 files changed +14
-9
lines changed Expand file tree Collapse file tree 6 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -2319,7 +2319,9 @@ export default {
2319
2319
this .owner .domainid = null
2320
2320
this .owner .projectid = OwnerOptions .selectedProject
2321
2321
}
2322
- this .resetData ()
2322
+ if (OwnerOptions .initialized ) {
2323
+ this .resetData ()
2324
+ }
2323
2325
},
2324
2326
fetchZones (zoneId , listZoneAllow ) {
2325
2327
this .zones = []
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ export default {
136
136
components: { ResourceIcon },
137
137
data () {
138
138
return {
139
+ initialized: false ,
139
140
domains: [],
140
141
accounts: [],
141
142
projects: [],
@@ -214,6 +215,7 @@ export default {
214
215
})
215
216
.finally (() => {
216
217
this .loading = false
218
+ this .initialized = true
217
219
})
218
220
},
219
221
fetchProjects () {
@@ -240,6 +242,7 @@ export default {
240
242
})
241
243
.finally (() => {
242
244
this .loading = false
245
+ this .initialized = true
243
246
})
244
247
},
245
248
changeDomain () {
Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ export default {
507
507
this .owner .domainid = null
508
508
this .owner .projectid = OwnerOptions .selectedProject
509
509
}
510
- if (isAdminOrDomainAdmin ()) {
510
+ if (OwnerOptions . initialized && isAdminOrDomainAdmin ()) {
511
511
this .updateVPCCheckAndFetchNetworkOfferingData ()
512
512
}
513
513
},
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ export default {
309
309
this .owner .domainid = null
310
310
this .owner .projectid = OwnerOptions .selectedProject
311
311
}
312
- if (isAdminOrDomainAdmin ()) {
312
+ if (OwnerOptions . initialized && this . isAdminOrDomainAdmin ()) {
313
313
this .updateVPCCheckAndFetchNetworkOfferingData ()
314
314
}
315
315
},
Original file line number Diff line number Diff line change @@ -272,23 +272,21 @@ export default {
272
272
},
273
273
fetchOwnerOptions (OwnerOptions ) {
274
274
this .owner = {}
275
- console .log (' fetching owner' )
276
275
if (OwnerOptions .selectedAccountType === ' Account' ) {
277
276
if (! OwnerOptions .selectedAccount ) {
278
277
return
279
278
}
280
- console .log (' fetched account' )
281
279
this .owner .account = OwnerOptions .selectedAccount
282
280
this .owner .domainid = OwnerOptions .selectedDomain
283
281
} else if (OwnerOptions .selectedAccountType === ' Project' ) {
284
282
if (! OwnerOptions .selectedProject ) {
285
283
return
286
284
}
287
- console .log (' fetched project' )
288
285
this .owner .projectid = OwnerOptions .selectedProject
289
286
}
290
- console .log (' fetched owner' )
291
- this .fetchData ()
287
+ if (OwnerOptions .initialized ) {
288
+ this .fetchData ()
289
+ }
292
290
},
293
291
fetchData () {
294
292
this .minCpu = store .getters .features .sharedfsvmmincpucount
Original file line number Diff line number Diff line change @@ -272,7 +272,9 @@ export default {
272
272
}
273
273
this .owner .projectid = OwnerOptions .selectedProject
274
274
}
275
- this .fetchData ()
275
+ if (OwnerOptions .initialized ) {
276
+ this .fetchData ()
277
+ }
276
278
},
277
279
fetchData () {
278
280
if (this .createVolumeFromSnapshot ) {
You can’t perform that action at this time.
0 commit comments