diff --git a/api/system/cluster_config.go b/api/system/cluster_config.go index 49fe2a8b..0d6bebcf 100644 --- a/api/system/cluster_config.go +++ b/api/system/cluster_config.go @@ -33,6 +33,7 @@ func (h *APIHandler) HandleCreateClusterAction(w http.ResponseWriter, req *http. esClient := elastic.GetClient(h.Config.Elasticsearch) id := util.GetUUID() conf.Created = time.Now() + conf.Enabled=true conf.Updated = conf.Created //conf.ID = id index:=orm.GetIndexName(model.ClusterConfig{}) diff --git a/model/cluster_config.go b/model/cluster_config.go index 07a7cd38..5e194a0e 100644 --- a/model/cluster_config.go +++ b/model/cluster_config.go @@ -12,7 +12,7 @@ type ClusterConfig struct { } `json:"basic_auth,omitempty" elastic_mapping:"basic_auth:{type:object}"` Order int `json:"order,omitempty" elastic_mapping:"order:{type:integer}"` Description string `json:"description,omitempty" elastic_mapping:"description:{type:text}"` - Enabled bool `json:"enabled" elastic_mapping:"enabled:{type:boolean}"` + Enabled bool `json:"enabled,omitempty" elastic_mapping:"enabled:{type:boolean}"` Created time.Time `json:"created,omitempty" elastic_mapping:"created:{type:date}"` Updated time.Time `json:"updated,omitempty" elastic_mapping:"updated:{type:date}"` } diff --git a/web/src/components/SiderMenu/index.less b/web/src/components/SiderMenu/index.less index 58d3fb02..466010c5 100644 --- a/web/src/components/SiderMenu/index.less +++ b/web/src/components/SiderMenu/index.less @@ -21,7 +21,7 @@ display: inline-block; vertical-align: middle; font-size: 20px; - margin: 6px 0 0 12px; + margin: 0 0 0 6px; font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif; font-weight: 600; }