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

* Force formatting to be enabled if testing is disabled

* Moved formatting toggle behind EnableDeveloper setting
This commit is contained in:
Harrison Healey
2016-06-27 08:16:01 -04:00
committed by Christopher Speller
parent 5be6661f12
commit 459eee85a9
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}