Skip to content

Commit e48c8c7

Browse files
committed
ui: fix form data double fetch/reset DeployVMFromBackup form data by ownership selection
Related apache#11705 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 8089d32 commit e48c8c7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ui/src/components/view/DeployVMFromBackup.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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 = []

ui/src/views/compute/wizard/OwnershipSelection.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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 () {

0 commit comments

Comments
 (0)