compute: Fixing networks not shown selected (#633)

Fixes #618

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
davidjumani 2020-08-28 15:22:33 +05:30 committed by Rohit Yadav
parent 8b85d0fe95
commit 91cc0d11c2
1 changed files with 7 additions and 1 deletions

View File

@ -275,7 +275,7 @@
</a-select>
</a-form-item>
</div>
<div v-else>
<div v-show="!(vm.templateid && templateNics && templateNics.length > 0)" >
<network-selection
v-if="!networkId"
:items="options.networks"
@ -1334,6 +1334,12 @@ export default {
arrNetwork.push(ipToNetwork)
}
}
} else {
this.$notification.error({
message: this.$t('message.request.failed'),
description: this.$t('message.step.4.continue')
})
return
}
for (let j = 0; j < arrNetwork.length; j++) {
deployVmData['iptonetworklist[' + j + '].networkid'] = arrNetwork[j].networkid