mirror of https://github.com/apache/cloudstack.git
Merge branch '4.17'
This commit is contained in:
commit
64262d943f
|
|
@ -180,6 +180,7 @@
|
|||
<a-form-item :label="$t('label.hypervisor')">
|
||||
<a-select
|
||||
v-model:value="form.hypervisor"
|
||||
:preFillContent="dataPreFill"
|
||||
:options="hypervisorSelectOptions"
|
||||
@change="value => hypervisor = value"
|
||||
showSearch
|
||||
|
|
@ -1974,7 +1975,9 @@ export default {
|
|||
this.options[name] = response
|
||||
|
||||
if (name === 'hypervisors') {
|
||||
this.hypervisor = response[0] && response[0].name ? response[0].name : null
|
||||
const hypervisorFromResponse = response[0] && response[0].name ? response[0].name : null
|
||||
this.dataPreFill.hypervisor = hypervisorFromResponse
|
||||
this.form.hypervisor = hypervisorFromResponse
|
||||
}
|
||||
|
||||
if (param.field) {
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@
|
|||
</a-form-item>
|
||||
<a-form-item :label="$t('label.associatednetwork')" ref="associatednetworkid" name="associatednetworkid">
|
||||
<a-select
|
||||
v-model:value="form.associatednetwork"
|
||||
v-model:value="form.associatednetworkid"
|
||||
showSearch
|
||||
optionFilterProp="label"
|
||||
:filterOption="(input, option) => {
|
||||
|
|
@ -738,8 +738,8 @@ export default {
|
|||
if (data.vlan && String(data.vlan).length > 0) {
|
||||
params.vlan = data.vlan
|
||||
}
|
||||
if (data.associatednetwork) {
|
||||
params.associatednetworkid = data.associatednetwork
|
||||
if (data.associatednetworkid) {
|
||||
params.associatednetworkid = data.associatednetworkid
|
||||
}
|
||||
|
||||
api('createPrivateGateway', params).then(response => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue