Skip to content

Commit 91cc0d1

Browse files
davidjumaniyadvr
authored andcommitted
compute: Fixing networks not shown selected (#633)
Fixes #618 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 8b85d0f commit 91cc0d1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui/src/views/compute/DeployVM.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
</a-select>
276276
</a-form-item>
277277
</div>
278-
<div v-else>
278+
<div v-show="!(vm.templateid && templateNics && templateNics.length > 0)" >
279279
<network-selection
280280
v-if="!networkId"
281281
:items="options.networks"
@@ -1334,6 +1334,12 @@ export default {
13341334
arrNetwork.push(ipToNetwork)
13351335
}
13361336
}
1337+
} else {
1338+
this.$notification.error({
1339+
message: this.$t('message.request.failed'),
1340+
description: this.$t('message.step.4.continue')
1341+
})
1342+
return
13371343
}
13381344
for (let j = 0; j < arrNetwork.length; j++) {
13391345
deployVmData['iptonetworklist[' + j + '].networkid'] = arrNetwork[j].networkid

0 commit comments

Comments
 (0)