MM-50347 Make desktop app landing page optional (#28421)
* fix: Make desktop app landing page optional * Update i18n strings * Fix linting and unit test --------- Co-authored-by: Kiran <kiran@krinati.co>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0048723ccd
Коммит
394f625bcb
@@ -25,6 +25,7 @@ func GenerateClientConfig(c *model.Config, telemetryID string, license *model.Li
|
||||
props["EnableJoinLeaveMessageByDefault"] = strconv.FormatBool(*c.TeamSettings.EnableJoinLeaveMessageByDefault)
|
||||
|
||||
props["EnableBotAccountCreation"] = strconv.FormatBool(*c.ServiceSettings.EnableBotAccountCreation)
|
||||
props["EnableDesktopLandingPage"] = strconv.FormatBool(*c.ServiceSettings.EnableDesktopLandingPage)
|
||||
props["EnableOAuthServiceProvider"] = strconv.FormatBool(*c.ServiceSettings.EnableOAuthServiceProvider)
|
||||
props["GoogleDeveloperKey"] = *c.ServiceSettings.GoogleDeveloperKey
|
||||
props["EnableIncomingWebhooks"] = strconv.FormatBool(*c.ServiceSettings.EnableIncomingWebhooks)
|
||||
@@ -244,6 +245,7 @@ func GenerateLimitedClientConfig(c *model.Config, telemetryID string, license *m
|
||||
props["ServiceEnvironment"] = model.GetServiceEnvironment()
|
||||
|
||||
props["EnableBotAccountCreation"] = strconv.FormatBool(*c.ServiceSettings.EnableBotAccountCreation)
|
||||
props["EnableDesktopLandingPage"] = strconv.FormatBool(*c.ServiceSettings.EnableDesktopLandingPage)
|
||||
props["EnableFile"] = strconv.FormatBool(*c.LogSettings.EnableFile)
|
||||
props["FileLevel"] = *c.LogSettings.FileLevel
|
||||
|
||||
|
||||
@@ -387,6 +387,7 @@ type ServiceSettings struct {
|
||||
EnableAPITeamDeletion *bool
|
||||
EnableAPITriggerAdminNotifications *bool
|
||||
EnableAPIUserDeletion *bool
|
||||
EnableDesktopLandingPage *bool
|
||||
ExperimentalEnableHardenedMode *bool `access:"experimental_features"`
|
||||
ExperimentalStrictCSRFEnforcement *bool `access:"experimental_features,write_restrictable,cloud_restrictable"`
|
||||
EnableEmailInvitations *bool `access:"authentication_signup"`
|
||||
@@ -825,6 +826,10 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
||||
s.EnableBotAccountCreation = NewPointer(false)
|
||||
}
|
||||
|
||||
if s.EnableDesktopLandingPage == nil {
|
||||
s.EnableDesktopLandingPage = NewPointer(true)
|
||||
}
|
||||
|
||||
if s.EnableSVGs == nil {
|
||||
if isUpdate {
|
||||
s.EnableSVGs = NewPointer(true)
|
||||
|
||||
Ссылка в новой задаче
Block a user