Skip to content

Commit 76f87ff

Browse files
Pearl1594Pearl Dsilva
authored andcommitted
List all suitable/available zones while creating networks (#873)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 482e223 commit 76f87ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ui/src/views/network/CreateIsolatedNetworkForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export default {
329329
fetchZoneData () {
330330
this.zones = []
331331
const params = {}
332-
if (this.resource.zoneid) {
332+
if (this.resource.zoneid && this.$route.name === 'deployVirtualMachine') {
333333
params.id = this.resource.zoneid
334334
}
335335
params.listAll = true

ui/src/views/network/CreateL2NetworkForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export default {
304304
fetchZoneData () {
305305
this.zones = []
306306
const params = {}
307-
if (this.resource.zoneid) {
307+
if (this.resource.zoneid && this.$route.name === 'deployVirtualMachine') {
308308
params.id = this.resource.zoneid
309309
}
310310
params.listAll = true

ui/src/views/network/CreateSharedNetworkForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ export default {
519519
}
520520
} else {
521521
const params = {}
522-
if (this.resource.zoneid) {
522+
if (this.resource.zoneid && this.$route.name === 'deployVirtualMachine') {
523523
params.id = this.resource.zoneid
524524
}
525525
params.listAll = true

0 commit comments

Comments
 (0)