PLT-3269 Moved formatting toggle behind EnableDeveloper setting (#3402)

* Force formatting to be enabled if testing is disabled

* Moved formatting toggle behind EnableDeveloper setting
Этот коммит содержится в:
Harrison Healey
2016-06-27 08:16:01 -04:00
коммит произвёл Christopher Speller
родитель 5be6661f12
Коммит 459eee85a9
2 изменённых файлов: 2 добавлений и 2 удалений

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

@@ -140,7 +140,7 @@ export default class AdvancedSettingsDisplay extends React.Component {
}
renderFormattingSection() {
if (window.mm_config.EnableTesting === 'false') {
if (window.mm_config.EnableDeveloper === 'false') {
return null;
}

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

@@ -27,7 +27,7 @@ export function formatText(text, options = {}) {
let output = text;
// would probably make more sense if it was on the calling components, but this option is intended primarily for debugging
if (PreferenceStore.get(Constants.Preferences.CATEGORY_ADVANCED_SETTINGS, 'formatting', 'true') === 'false') {
if (window.mm_config.EnableDeveloper === 'true' && PreferenceStore.get(Constants.Preferences.CATEGORY_ADVANCED_SETTINGS, 'formatting', 'true') === 'false') {
return output;
}