Add ExperimentalTimezone flag (#8539)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
d4c0494360
Коммит
eb48292a3a
@@ -1712,6 +1712,16 @@ func (s *MessageExportSettings) SetDefaults() {
|
||||
}
|
||||
}
|
||||
|
||||
type DisplaySettings struct {
|
||||
ExperimentalTimezone *bool
|
||||
}
|
||||
|
||||
func (s *DisplaySettings) SetDefaults() {
|
||||
if s.ExperimentalTimezone == nil {
|
||||
s.ExperimentalTimezone = NewBool(false)
|
||||
}
|
||||
}
|
||||
|
||||
type TimezoneSettings struct {
|
||||
SupportedTimezonesPath *string
|
||||
}
|
||||
@@ -1755,6 +1765,7 @@ type Config struct {
|
||||
MessageExportSettings MessageExportSettings
|
||||
JobSettings JobSettings
|
||||
PluginSettings PluginSettings
|
||||
DisplaySettings DisplaySettings
|
||||
TimezoneSettings TimezoneSettings
|
||||
}
|
||||
|
||||
@@ -1826,6 +1837,7 @@ func (o *Config) SetDefaults() {
|
||||
o.WebrtcSettings.SetDefaults()
|
||||
o.MessageExportSettings.SetDefaults()
|
||||
o.TimezoneSettings.SetDefaults()
|
||||
o.DisplaySettings.SetDefaults()
|
||||
}
|
||||
|
||||
func (o *Config) IsValid() *AppError {
|
||||
|
||||
Ссылка в новой задаче
Block a user