File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
web/src/views/clusters/plan/etcd Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,12 @@ export default {
5151 },
5252 methods: {
5353 async loadEtcdDeploymentOptions () {
54- let result = [
55- {
56- label: this .$t (' field.etcd_deployment_type-host' ),
57- value: ' host'
58- },
59- ]
60- if (this .cluster .inventory .all .children .target .vars .container_manager === ' docker' ) {
54+ let result = []
55+ for (let item of this .cluster .resourcePackage .data .etcd .etcd_deployment_type ) {
6156 result .push ({
62- label: this .$t (' field.etcd_deployment_type-docker' ),
63- value: ' docker' ,
57+ label: this .$t (' field.etcd_deployment_type-' + item),
58+ value: item,
59+ disabled: item === ' docker' ? this .cluster .inventory .all .children .target .vars .container_manager !== ' docker' : false ,
6460 })
6561 }
6662 return result
You can’t perform that action at this time.
0 commit comments