Skip to content

Commit 0910dfe

Browse files
committed
Fix zone selection in createNetwork via Create Instance from backup form.
1 parent 5941150 commit 0910dfe

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ui/src/views/network/CreateIsolatedNetworkForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ export default {
443443
fetchZoneData () {
444444
this.zones = []
445445
const params = {}
446-
if (this.resource.zoneid && (this.$route.name === 'deployVirtualMachine' || this.$route.name === 'backup')) {
446+
if (this.resource.zoneid && (this.$route.name === 'deployVirtualMachine' || this.$route.path.startsWith('/backup'))) {
447447
params.id = this.resource.zoneid
448448
}
449449
params.showicon = true

ui/src/views/network/CreateL2NetworkForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export default {
264264
fetchZoneData () {
265265
this.zones = []
266266
const params = {}
267-
if (this.resource.zoneid && (this.$route.name === 'deployVirtualMachine' || this.$route.name === 'backup')) {
267+
if (this.resource.zoneid && (this.$route.name === 'deployVirtualMachine' || this.$route.path.startsWith('/backup'))) {
268268
params.id = this.resource.zoneid
269269
}
270270
params.showicon = true

ui/src/views/network/CreateNetwork.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default {
106106
fetchActionZoneData () {
107107
this.loading = true
108108
const params = {}
109-
if ((this.$route.name === 'deployVirtualMachine' || this.$route.name === 'backup') && this.resource.zoneid) {
109+
if (this.resource.zoneid && (this.$route.name === 'deployVirtualMachine' || this.$route.path.startsWith('/backup'))) {
110110
params.id = this.resource.zoneid
111111
}
112112
this.actionZoneLoading = true

ui/src/views/network/CreateSharedNetworkForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ export default {
640640
}
641641
} else {
642642
const params = {}
643-
if (this.resource.zoneid && (this.$route.name === 'deployVirtualMachine' || this.$route.name === 'backup')) {
643+
if (this.resource.zoneid && (this.$route.name === 'deployVirtualMachine' || this.$route.path.startsWith('/backup'))) {
644644
params.id = this.resource.zoneid
645645
}
646646
params.showicon = true

0 commit comments

Comments
 (0)