add ExperimentalHideTownSquareinLHS in config setting (#8751)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
47f3c064db
Коммит
94b2eca2d1
@@ -244,7 +244,7 @@ func (a *App) trackConfig() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
a.SendDiagnostic(TRACK_CONFIG_TEAM, map[string]interface{}{
|
a.SendDiagnostic(TRACK_CONFIG_TEAM, map[string]interface{}{
|
||||||
"enable_user_creation": *cfg.TeamSettings.EnableUserCreation,
|
"enable_user_creation": cfg.TeamSettings.EnableUserCreation,
|
||||||
"enable_team_creation": *cfg.TeamSettings.EnableTeamCreation,
|
"enable_team_creation": *cfg.TeamSettings.EnableTeamCreation,
|
||||||
"restrict_team_invite": *cfg.TeamSettings.RestrictTeamInvite,
|
"restrict_team_invite": *cfg.TeamSettings.RestrictTeamInvite,
|
||||||
"restrict_public_channel_creation": *cfg.TeamSettings.RestrictPublicChannelCreation,
|
"restrict_public_channel_creation": *cfg.TeamSettings.RestrictPublicChannelCreation,
|
||||||
@@ -268,6 +268,7 @@ func (a *App) trackConfig() {
|
|||||||
"restrict_private_channel_manage_members": *cfg.TeamSettings.RestrictPrivateChannelManageMembers,
|
"restrict_private_channel_manage_members": *cfg.TeamSettings.RestrictPrivateChannelManageMembers,
|
||||||
"enable_X_to_leave_channels_from_LHS": *cfg.TeamSettings.EnableXToLeaveChannelsFromLHS,
|
"enable_X_to_leave_channels_from_LHS": *cfg.TeamSettings.EnableXToLeaveChannelsFromLHS,
|
||||||
"experimental_enable_automatic_replies": *cfg.TeamSettings.ExperimentalEnableAutomaticReplies,
|
"experimental_enable_automatic_replies": *cfg.TeamSettings.ExperimentalEnableAutomaticReplies,
|
||||||
|
"experimental_town_square_is_hidden_in_lhs": *cfg.TeamSettings.ExperimentalHideTownSquareinLHS,
|
||||||
"experimental_town_square_is_read_only": *cfg.TeamSettings.ExperimentalTownSquareIsReadOnly,
|
"experimental_town_square_is_read_only": *cfg.TeamSettings.ExperimentalTownSquareIsReadOnly,
|
||||||
"experimental_primary_team": isDefault(*cfg.TeamSettings.ExperimentalPrimaryTeam, ""),
|
"experimental_primary_team": isDefault(*cfg.TeamSettings.ExperimentalPrimaryTeam, ""),
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -91,6 +91,7 @@
|
|||||||
"EnableConfirmNotificationsToChannel": true,
|
"EnableConfirmNotificationsToChannel": true,
|
||||||
"TeammateNameDisplay": "username",
|
"TeammateNameDisplay": "username",
|
||||||
"ExperimentalEnableAutomaticReplies": false,
|
"ExperimentalEnableAutomaticReplies": false,
|
||||||
|
"ExperimentalHideTownSquareinLHS": false,
|
||||||
"ExperimentalTownSquareIsReadOnly": false,
|
"ExperimentalTownSquareIsReadOnly": false,
|
||||||
"ExperimentalPrimaryTeam": ""
|
"ExperimentalPrimaryTeam": ""
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1022,6 +1022,7 @@ type TeamSettings struct {
|
|||||||
EnableConfirmNotificationsToChannel *bool
|
EnableConfirmNotificationsToChannel *bool
|
||||||
TeammateNameDisplay *string
|
TeammateNameDisplay *string
|
||||||
ExperimentalEnableAutomaticReplies *bool
|
ExperimentalEnableAutomaticReplies *bool
|
||||||
|
ExperimentalHideTownSquareinLHS *bool
|
||||||
ExperimentalTownSquareIsReadOnly *bool
|
ExperimentalTownSquareIsReadOnly *bool
|
||||||
ExperimentalPrimaryTeam *string
|
ExperimentalPrimaryTeam *string
|
||||||
}
|
}
|
||||||
@@ -1120,6 +1121,10 @@ func (s *TeamSettings) SetDefaults() {
|
|||||||
s.ExperimentalEnableAutomaticReplies = NewBool(false)
|
s.ExperimentalEnableAutomaticReplies = NewBool(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.ExperimentalHideTownSquareinLHS == nil {
|
||||||
|
s.ExperimentalHideTownSquareinLHS = NewBool(false)
|
||||||
|
}
|
||||||
|
|
||||||
if s.ExperimentalTownSquareIsReadOnly == nil {
|
if s.ExperimentalTownSquareIsReadOnly == nil {
|
||||||
s.ExperimentalTownSquareIsReadOnly = NewBool(false)
|
s.ExperimentalTownSquareIsReadOnly = NewBool(false)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -554,6 +554,7 @@ func GenerateClientConfig(c *model.Config, diagnosticId string, license *model.L
|
|||||||
props["HasImageProxy"] = strconv.FormatBool(hasImageProxy)
|
props["HasImageProxy"] = strconv.FormatBool(hasImageProxy)
|
||||||
|
|
||||||
// Set default values for all options that require a license.
|
// Set default values for all options that require a license.
|
||||||
|
props["ExperimentalHideTownSquareinLHS"] = "false"
|
||||||
props["ExperimentalTownSquareIsReadOnly"] = "false"
|
props["ExperimentalTownSquareIsReadOnly"] = "false"
|
||||||
props["ExperimentalEnableAuthenticationTransfer"] = "true"
|
props["ExperimentalEnableAuthenticationTransfer"] = "true"
|
||||||
props["EnableCustomBrand"] = "false"
|
props["EnableCustomBrand"] = "false"
|
||||||
@@ -609,6 +610,7 @@ func GenerateClientConfig(c *model.Config, diagnosticId string, license *model.L
|
|||||||
props["PasswordRequireSymbol"] = strconv.FormatBool(*c.PasswordSettings.Symbol)
|
props["PasswordRequireSymbol"] = strconv.FormatBool(*c.PasswordSettings.Symbol)
|
||||||
|
|
||||||
if license != nil {
|
if license != nil {
|
||||||
|
props["ExperimentalHideTownSquareinLHS"] = strconv.FormatBool(*c.TeamSettings.ExperimentalHideTownSquareinLHS)
|
||||||
props["ExperimentalTownSquareIsReadOnly"] = strconv.FormatBool(*c.TeamSettings.ExperimentalTownSquareIsReadOnly)
|
props["ExperimentalTownSquareIsReadOnly"] = strconv.FormatBool(*c.TeamSettings.ExperimentalTownSquareIsReadOnly)
|
||||||
props["ExperimentalEnableAuthenticationTransfer"] = strconv.FormatBool(*c.ServiceSettings.ExperimentalEnableAuthenticationTransfer)
|
props["ExperimentalEnableAuthenticationTransfer"] = strconv.FormatBool(*c.ServiceSettings.ExperimentalEnableAuthenticationTransfer)
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user