PLT-3269 Moved formatting toggle behind EnableDeveloper setting (#3402)
* Force formatting to be enabled if testing is disabled * Moved formatting toggle behind EnableDeveloper setting
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
5be6661f12
Коммит
459eee85a9
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user