disabling setting theme without breaking the build

pull/21833/head
Bruno Windels 2018-12-17 12:49:38 +01:00
parent 649910139a
commit 510cec1ebf
1 changed files with 5 additions and 7 deletions

View File

@ -673,9 +673,11 @@ export default React.createClass({
}); });
break; break;
} }
case 'set_theme': // case 'set_theme':
this._onSetTheme(payload.value); // disable changing the theme for now
break; // as other themes are not compatible with dharma
// this._onSetTheme(payload.value);
// break;
case 'on_logging_in': case 'on_logging_in':
// We are now logging in, so set the state to reflect that // We are now logging in, so set the state to reflect that
// NB. This does not touch 'ready' since if our dispatches // NB. This does not touch 'ready' since if our dispatches
@ -1079,10 +1081,6 @@ export default React.createClass({
* @param {string} theme new theme * @param {string} theme new theme
*/ */
_onSetTheme: function(theme) { _onSetTheme: function(theme) {
// disable changing the theme for now
// as other themes are not compatible with dharma
return;
if (!theme) { if (!theme) {
theme = SettingsStore.getValue("theme"); theme = SettingsStore.getValue("theme");
} }