add config option to hide tutorial screens (#7840)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
0cdf969ac7
Коммит
7ed1177a2b
@@ -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)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user