PLT-3168 Hide EnableFormatting advanced setting unless testing is enabled (#3237)

* Added EnableTesting to the client config

* Hid EnableFormatting advanced setting unless testing is enabled
Этот коммит содержится в:
Harrison Healey
2016-06-05 02:35:39 -04:00
коммит произвёл enahum
родитель 96373a0cc7
Коммит 2965a00e9b
2 изменённых файлов: 87 добавлений и 73 удалений

Просмотреть файл

@@ -217,6 +217,7 @@ func getClientConfig(c *model.Config) map[string]string {
props["EnableOnlyAdminIntegrations"] = strconv.FormatBool(*c.ServiceSettings.EnableOnlyAdminIntegrations)
props["EnablePostUsernameOverride"] = strconv.FormatBool(c.ServiceSettings.EnablePostUsernameOverride)
props["EnablePostIconOverride"] = strconv.FormatBool(c.ServiceSettings.EnablePostIconOverride)
props["EnableTesting"] = strconv.FormatBool(c.ServiceSettings.EnableTesting)
props["EnableDeveloper"] = strconv.FormatBool(*c.ServiceSettings.EnableDeveloper)
props["SendEmailNotifications"] = strconv.FormatBool(c.EmailSettings.SendEmailNotifications)