mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
add config option to hide tutorial screens (#7840)
This commit is contained in:
committed by
Christopher Speller
parent
0cdf969ac7
commit
7ed1177a2b
+2
-1
@@ -54,7 +54,8 @@
|
||||
"EnableUserStatuses": true,
|
||||
"ClusterLogTimeoutMilliseconds": 2000,
|
||||
"EnablePreviewFeatures": true,
|
||||
"CloseUnusedDirectMessages": false
|
||||
"CloseUnusedDirectMessages": false,
|
||||
"EnableTutorial": true
|
||||
},
|
||||
"TeamSettings": {
|
||||
"SiteName": "Mattermost",
|
||||
|
||||
@@ -212,6 +212,7 @@ type ServiceSettings struct {
|
||||
ClusterLogTimeoutMilliseconds *int
|
||||
CloseUnusedDirectMessages *bool
|
||||
EnablePreviewFeatures *bool
|
||||
EnableTutorial *bool
|
||||
}
|
||||
|
||||
func (s *ServiceSettings) SetDefaults() {
|
||||
@@ -331,6 +332,10 @@ func (s *ServiceSettings) SetDefaults() {
|
||||
s.CloseUnusedDirectMessages = NewBool(false)
|
||||
}
|
||||
|
||||
if s.EnableTutorial == nil {
|
||||
s.EnableTutorial = NewBool(true)
|
||||
}
|
||||
|
||||
if s.SessionLengthWebInDays == nil {
|
||||
s.SessionLengthWebInDays = NewInt(30)
|
||||
}
|
||||
|
||||
@@ -489,6 +489,7 @@ func getClientConfig(c *model.Config) map[string]string {
|
||||
props["PostEditTimeLimit"] = fmt.Sprintf("%v", *c.ServiceSettings.PostEditTimeLimit)
|
||||
props["CloseUnusedDirectMessages"] = strconv.FormatBool(*c.ServiceSettings.CloseUnusedDirectMessages)
|
||||
props["EnablePreviewFeatures"] = strconv.FormatBool(*c.ServiceSettings.EnablePreviewFeatures)
|
||||
props["EnableTutorial"] = strconv.FormatBool(*c.ServiceSettings.EnableTutorial)
|
||||
|
||||
props["SendEmailNotifications"] = strconv.FormatBool(c.EmailSettings.SendEmailNotifications)
|
||||
props["SendPushNotifications"] = strconv.FormatBool(*c.EmailSettings.SendPushNotifications)
|
||||
|
||||
Reference in New Issue
Block a user