[MM-19309] Name Display Lock (#13018)
* WIP * [MM-19309] Updated params * Updated boolean value * [MM-19309] add new struct * Updated en.json * Fixed golangci error * Address PR comments
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5ea8017db5
Коммит
2880a0af50
@@ -20,6 +20,7 @@ func GenerateClientConfig(c *model.Config, diagnosticId string, license *model.L
|
|||||||
props["RestrictDirectMessage"] = *c.TeamSettings.RestrictDirectMessage
|
props["RestrictDirectMessage"] = *c.TeamSettings.RestrictDirectMessage
|
||||||
props["EnableXToLeaveChannelsFromLHS"] = strconv.FormatBool(*c.TeamSettings.EnableXToLeaveChannelsFromLHS)
|
props["EnableXToLeaveChannelsFromLHS"] = strconv.FormatBool(*c.TeamSettings.EnableXToLeaveChannelsFromLHS)
|
||||||
props["TeammateNameDisplay"] = *c.TeamSettings.TeammateNameDisplay
|
props["TeammateNameDisplay"] = *c.TeamSettings.TeammateNameDisplay
|
||||||
|
props["LockTeammateNameDisplay"] = strconv.FormatBool(*c.TeamSettings.LockTeammateNameDisplay)
|
||||||
props["ExperimentalPrimaryTeam"] = *c.TeamSettings.ExperimentalPrimaryTeam
|
props["ExperimentalPrimaryTeam"] = *c.TeamSettings.ExperimentalPrimaryTeam
|
||||||
props["ExperimentalViewArchivedChannels"] = strconv.FormatBool(*c.TeamSettings.ExperimentalViewArchivedChannels)
|
props["ExperimentalViewArchivedChannels"] = strconv.FormatBool(*c.TeamSettings.ExperimentalViewArchivedChannels)
|
||||||
|
|
||||||
|
|||||||
@@ -1521,6 +1521,7 @@ type TeamSettings struct {
|
|||||||
ExperimentalEnableAutomaticReplies *bool
|
ExperimentalEnableAutomaticReplies *bool
|
||||||
ExperimentalHideTownSquareinLHS *bool
|
ExperimentalHideTownSquareinLHS *bool
|
||||||
ExperimentalTownSquareIsReadOnly *bool
|
ExperimentalTownSquareIsReadOnly *bool
|
||||||
|
LockTeammateNameDisplay *bool
|
||||||
ExperimentalPrimaryTeam *string
|
ExperimentalPrimaryTeam *string
|
||||||
ExperimentalDefaultChannels []string
|
ExperimentalDefaultChannels []string
|
||||||
}
|
}
|
||||||
@@ -1667,6 +1668,10 @@ func (s *TeamSettings) SetDefaults() {
|
|||||||
if s.ExperimentalViewArchivedChannels == nil {
|
if s.ExperimentalViewArchivedChannels == nil {
|
||||||
s.ExperimentalViewArchivedChannels = NewBool(false)
|
s.ExperimentalViewArchivedChannels = NewBool(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.LockTeammateNameDisplay == nil {
|
||||||
|
s.LockTeammateNameDisplay = NewBool(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type ClientRequirements struct {
|
type ClientRequirements struct {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user