File tree Expand file tree Collapse file tree 7 files changed +17
-10
lines changed Expand file tree Collapse file tree 7 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -2050,7 +2050,9 @@ export default {
20502050 this .owner .domainid = null
20512051 this .owner .projectid = OwnerOptions .selectedProject
20522052 }
2053- this .resetData ()
2053+ if (OwnerOptions .initialized ) {
2054+ this .resetData ()
2055+ }
20542056 },
20552057 fetchZones (zoneId , listZoneAllow ) {
20562058 this .zones = []
Original file line number Diff line number Diff line change @@ -2569,7 +2569,9 @@ export default {
25692569 this .owner .domainid = null
25702570 this .owner .projectid = OwnerOptions .selectedProject
25712571 }
2572- this .resetData ()
2572+ if (OwnerOptions .initialized ) {
2573+ this .resetData ()
2574+ }
25732575 },
25742576 fetchZones (zoneId , listZoneAllow ) {
25752577 this .zones = []
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ export default {
136136 components: { ResourceIcon },
137137 data () {
138138 return {
139+ initialized: false ,
139140 domains: [],
140141 accounts: [],
141142 projects: [],
@@ -214,6 +215,7 @@ export default {
214215 })
215216 .finally (() => {
216217 this .loading = false
218+ this .initialized = true
217219 })
218220 },
219221 fetchProjects () {
@@ -240,6 +242,7 @@ export default {
240242 })
241243 .finally (() => {
242244 this .loading = false
245+ this .initialized = true
243246 })
244247 },
245248 changeDomain () {
Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ export default {
507507 this .owner .domainid = null
508508 this .owner .projectid = OwnerOptions .selectedProject
509509 }
510- if (isAdminOrDomainAdmin ()) {
510+ if (OwnerOptions . initialized && isAdminOrDomainAdmin ()) {
511511 this .updateVPCCheckAndFetchNetworkOfferingData ()
512512 }
513513 },
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ export default {
309309 this .owner .domainid = null
310310 this .owner .projectid = OwnerOptions .selectedProject
311311 }
312- if (isAdminOrDomainAdmin ()) {
312+ if (OwnerOptions . initialized && this . isAdminOrDomainAdmin ()) {
313313 this .updateVPCCheckAndFetchNetworkOfferingData ()
314314 }
315315 },
Original file line number Diff line number Diff line change @@ -272,23 +272,21 @@ export default {
272272 },
273273 fetchOwnerOptions (OwnerOptions ) {
274274 this .owner = {}
275- console .log (' fetching owner' )
276275 if (OwnerOptions .selectedAccountType === ' Account' ) {
277276 if (! OwnerOptions .selectedAccount ) {
278277 return
279278 }
280- console .log (' fetched account' )
281279 this .owner .account = OwnerOptions .selectedAccount
282280 this .owner .domainid = OwnerOptions .selectedDomain
283281 } else if (OwnerOptions .selectedAccountType === ' Project' ) {
284282 if (! OwnerOptions .selectedProject ) {
285283 return
286284 }
287- console .log (' fetched project' )
288285 this .owner .projectid = OwnerOptions .selectedProject
289286 }
290- console .log (' fetched owner' )
291- this .fetchData ()
287+ if (OwnerOptions .initialized ) {
288+ this .fetchData ()
289+ }
292290 },
293291 fetchData () {
294292 this .minCpu = store .getters .features .sharedfsvmmincpucount
Original file line number Diff line number Diff line change @@ -272,7 +272,9 @@ export default {
272272 }
273273 this .owner .projectid = OwnerOptions .selectedProject
274274 }
275- this .fetchData ()
275+ if (OwnerOptions .initialized ) {
276+ this .fetchData ()
277+ }
276278 },
277279 fetchData () {
278280 if (this .createVolumeFromSnapshot ) {
You can’t perform that action at this time.
0 commit comments