diff --git a/ui/src/views/compute/DeployVM.vue b/ui/src/views/compute/DeployVM.vue index d7b234f2351..09d36a3da37 100644 --- a/ui/src/views/compute/DeployVM.vue +++ b/ui/src/views/compute/DeployVM.vue @@ -51,6 +51,7 @@ v-decorator="['podid']" :options="podSelectOptions" :loading="loading.pods" + @change="onSelectPodId" > option.id === value) this.zoneSelected = true this.form.setFieldsValue({ @@ -1109,6 +1118,17 @@ export default { }) this.fetchAllTemplates() }, + onSelectPodId (value) { + this.podId = value + + this.fetchOptions(this.params.clusters, 'clusters') + this.fetchOptions(this.params.hosts, 'hosts') + }, + onSelectClusterId (value) { + this.clusterId = value + + this.fetchOptions(this.params.hosts, 'hosts') + }, handleSearchFilter (name, options) { this.params[name].options = { ...this.params[name].options, ...options } this.fetchOptions(this.params[name], name)