mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge release branch 4.17 to main
* 4.17: Fix select default host option on deployment wizard (#7256)
This commit is contained in:
commit
1a4bf07548
@ -123,6 +123,7 @@
|
||||
:filterOption="filterOption"
|
||||
:options="hostSelectOptions"
|
||||
:loading="loading.hosts"
|
||||
@change="onSelectHostId"
|
||||
></a-select>
|
||||
</a-form-item>
|
||||
</div>
|
||||
@ -1185,7 +1186,7 @@ export default {
|
||||
})
|
||||
options.unshift({
|
||||
label: this.$t('label.default'),
|
||||
value: undefined
|
||||
value: null
|
||||
})
|
||||
return options
|
||||
},
|
||||
@ -1198,7 +1199,7 @@ export default {
|
||||
})
|
||||
options.unshift({
|
||||
label: this.$t('label.default'),
|
||||
value: undefined
|
||||
value: null
|
||||
})
|
||||
return options
|
||||
},
|
||||
@ -1211,7 +1212,7 @@ export default {
|
||||
})
|
||||
options.unshift({
|
||||
label: this.$t('label.default'),
|
||||
value: undefined
|
||||
value: null
|
||||
})
|
||||
return options
|
||||
},
|
||||
@ -2411,15 +2412,27 @@ export default {
|
||||
},
|
||||
onSelectPodId (value) {
|
||||
this.podId = value
|
||||
if (this.podId === null) {
|
||||
this.form.podid = undefined
|
||||
}
|
||||
|
||||
this.fetchOptions(this.params.clusters, 'clusters')
|
||||
this.fetchOptions(this.params.hosts, 'hosts')
|
||||
},
|
||||
onSelectClusterId (value) {
|
||||
this.clusterId = value
|
||||
if (this.clusterId === null) {
|
||||
this.form.clusterid = undefined
|
||||
}
|
||||
|
||||
this.fetchOptions(this.params.hosts, 'hosts')
|
||||
},
|
||||
onSelectHostId (value) {
|
||||
this.hostId = value
|
||||
if (this.hostId === null) {
|
||||
this.form.hostid = undefined
|
||||
}
|
||||
},
|
||||
handleSearchFilter (name, options) {
|
||||
this.params[name].options = { ...this.params[name].options, ...options }
|
||||
this.fetchOptions(this.params[name], name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user