mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: fix create network access in deploy vm wizard (#9117)
Fixes #9115 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
ad66edf6e6
commit
283a4853aa
@ -3029,7 +3029,8 @@
|
||||
"message.network.offering.promiscuous.mode": "Applicable for guest Networks on VMware hypervisor only.\nReject - The switch drops any outbound frame from a virtual machine adapter with a source MAC address that is different from the one in the .vmx configuration file.\nAccept - The switch does not perform filtering, and permits all outbound frames.\nNone - Default to value from global setting.",
|
||||
"message.network.removenic": "Please confirm that want to remove this NIC, which will also remove the associated Network from the Instance.",
|
||||
"message.network.secondaryip": "Please confirm that you would like to acquire a new secondary IP for this NIC. \n NOTE: You need to manually configure the newly-acquired secondary IP inside the virtual machine.",
|
||||
"message.network.selection": "Choose one or more Networks to attach the Instance to. A new Network can also be created here.",
|
||||
"message.network.selection": "Choose one or more Networks to attach the Instance to.",
|
||||
"message.network.selection.new.network": "A new Network can also be created here.",
|
||||
"message.network.updateip": "Please confirm that you would like to change the IP address for this NIC on the Instance.",
|
||||
"message.network.usage.info.data.points": "Each data point represents the difference in data traffic since the last data point.",
|
||||
"message.network.usage.info.sum.of.vnics": "The Network usage shown is made up of the sum of data traffic from all the vNICs in the Instance.",
|
||||
|
||||
@ -392,7 +392,7 @@
|
||||
<template #description>
|
||||
<div v-if="zoneSelected" style="margin-top: 5px">
|
||||
<div style="margin-bottom: 10px">
|
||||
{{ $t('message.network.selection') }}
|
||||
{{ $t('message.network.selection') + ('createNetwork' in $store.getters.apis ? ' ' + $t('message.network.selection.new.network') : '') }}
|
||||
</div>
|
||||
<div v-if="vm.templateid && templateNics && templateNics.length > 0">
|
||||
<instance-nics-network-select-list-view
|
||||
|
||||
@ -254,7 +254,7 @@ export default {
|
||||
api('listZones', { id: this.zoneId }).then(json => {
|
||||
const zoneResponse = json.listzonesresponse.zone || []
|
||||
this.showCreateButton = false
|
||||
if (zoneResponse && zoneResponse.length > 0 && (!zoneResponse[0].securitygroupsenabled || (isAdmin() && zoneResponse[0].networktype === 'Advanced'))) {
|
||||
if ('createNetwork' in store.getters.apis && zoneResponse && zoneResponse.length > 0 && (!zoneResponse[0].securitygroupsenabled || (isAdmin() && zoneResponse[0].networktype === 'Advanced'))) {
|
||||
this.showCreateButton = true
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user