mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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:
committed by
Christopher Speller
parent
5be6661f12
commit
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user