[MM-19344] add option to render latex (#12907)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
c0186cef1a
Коммит
f58e2ffd0f
@@ -325,6 +325,7 @@ type ServiceSettings struct {
|
||||
DisableBotsWhenOwnerIsDeactivated *bool `restricted:"true"`
|
||||
EnableBotAccountCreation *bool
|
||||
EnableSVGs *bool
|
||||
EnableLatex *bool
|
||||
}
|
||||
|
||||
func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
||||
@@ -689,6 +690,14 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
||||
s.EnableSVGs = NewBool(false)
|
||||
}
|
||||
}
|
||||
|
||||
if s.EnableLatex == nil {
|
||||
if isUpdate {
|
||||
s.EnableLatex = NewBool(true)
|
||||
} else {
|
||||
s.EnableLatex = NewBool(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
type ClusterSettings struct {
|
||||
|
||||
Ссылка в новой задаче
Block a user