Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions ui/src/views/compute/DeployVM.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
:filterOption="filterOption"
:options="hostSelectOptions"
:loading="loading.hosts"
@change="onSelectHostId"
></a-select>
</a-form-item>
</div>
Expand Down Expand Up @@ -1005,7 +1006,7 @@ export default {
})
options.unshift({
label: this.$t('label.default'),
value: undefined
value: null
})
return options
},
Expand All @@ -1018,7 +1019,7 @@ export default {
})
options.unshift({
label: this.$t('label.default'),
value: undefined
value: null
})
return options
},
Expand All @@ -1031,7 +1032,7 @@ export default {
})
options.unshift({
label: this.$t('label.default'),
value: undefined
value: null
})
return options
},
Expand Down Expand Up @@ -2130,15 +2131,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)
Expand Down