MM-52915 - Remove boards product config setting and system console (#23526)
* Remove boards product config setting and system console * create config setting to enable/disable playbooks product * fix to config name * fix typo * remove lingering ProductSettings references * remove lingering ProductSettings references * revert changes to package-lock.json * Revert "revert changes to package-lock.json" This reverts commit 1a7d98ace33a2f639f41ba7a7697689641684fca. * revert changes to package-lock.json * fix build issues * another fix * update webap test * i18n-extract * Revert "i18n-extract" This reverts commit c0a98c74ea1800341b273301d3cdb990bc629bc5. * fix bad i18n-extract * fix bad i18n-extract * fix tests from bad merge * more translation fixes * more translation fixes * updates from self-review --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1215584665
Коммит
d0ad46b496
@@ -2864,18 +2864,10 @@ func (s *CloudSettings) SetDefaults() {
|
||||
}
|
||||
|
||||
type ProductSettings struct {
|
||||
EnablePublicSharedBoards *bool
|
||||
EnablePlaybooks *bool
|
||||
EnablePlaybooks *bool
|
||||
}
|
||||
|
||||
func (s *ProductSettings) SetDefaults(plugins map[string]map[string]any) {
|
||||
if s.EnablePublicSharedBoards == nil {
|
||||
if p, ok := plugins[PluginIdFocalboard]; ok {
|
||||
s.EnablePublicSharedBoards = NewBool(p["enablepublicsharedboards"].(bool))
|
||||
} else {
|
||||
s.EnablePublicSharedBoards = NewBool(false)
|
||||
}
|
||||
}
|
||||
func (s *ProductSettings) SetDefaults() {
|
||||
if s.EnablePlaybooks == nil {
|
||||
s.EnablePlaybooks = NewBool(true)
|
||||
}
|
||||
@@ -3360,7 +3352,7 @@ func (o *Config) SetDefaults() {
|
||||
o.ThemeSettings.SetDefaults()
|
||||
o.ClusterSettings.SetDefaults()
|
||||
o.PluginSettings.SetDefaults(o.LogSettings)
|
||||
o.ProductSettings.SetDefaults(o.PluginSettings.Plugins)
|
||||
o.ProductSettings.SetDefaults()
|
||||
o.AnalyticsSettings.SetDefaults()
|
||||
o.ComplianceSettings.SetDefaults()
|
||||
o.LocalizationSettings.SetDefaults()
|
||||
|
||||
Ссылка в новой задаче
Block a user