Merge release branch 4.17 to main

* 4.17:
  Fix select default host option on deployment wizard (#7256)
This commit is contained in:
Daan Hoogland 2023-02-20 15:32:36 +01:00
commit 1a4bf07548

View File

@ -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)