Hide pre-release features section of advanced settings pane. (#7847)

This commit is contained in:
Chris Duarte
2017-11-21 07:45:41 -08:00
committed by Joram Wilander
parent fdba2d50fd
commit cfa09ce0ef
3 changed files with 4 additions and 1 deletions

View File

@@ -51,7 +51,8 @@
"EnableUserTypingMessages": true,
"EnableChannelViewedMessages": true,
"EnableUserStatuses": true,
"ClusterLogTimeoutMilliseconds": 2000
"ClusterLogTimeoutMilliseconds": 2000,
"EnablePreviewFeatures": true
},
"TeamSettings": {
"SiteName": "Mattermost",

View File

@@ -205,6 +205,7 @@ type ServiceSettings struct {
EnableUserStatuses *bool
ClusterLogTimeoutMilliseconds *int
CloseUnusedDirectMessages *bool
EnablePreviewFeatures *bool
}
func (s *ServiceSettings) SetDefaults() {

View File

@@ -489,6 +489,7 @@ func getClientConfig(c *model.Config) map[string]string {
props["AllowEditPost"] = *c.ServiceSettings.AllowEditPost
props["PostEditTimeLimit"] = fmt.Sprintf("%v", *c.ServiceSettings.PostEditTimeLimit)
props["CloseUnusedDirectMessages"] = strconv.FormatBool(*c.ServiceSettings.CloseUnusedDirectMessages)
props["EnablePreviewFeatures"] = strconv.FormatBool(*c.ServiceSettings.EnablePreviewFeatures)
props["SendEmailNotifications"] = strconv.FormatBool(c.EmailSettings.SendEmailNotifications)
props["SendPushNotifications"] = strconv.FormatBool(*c.EmailSettings.SendPushNotifications)