remove setter
parent
2d9b111680
commit
cb9362456f
|
@ -507,7 +507,7 @@ export default createReactClass({
|
||||||
view: VIEWS.LOGIN,
|
view: VIEWS.LOGIN,
|
||||||
});
|
});
|
||||||
this.notifyNewScreen('login');
|
this.notifyNewScreen('login');
|
||||||
ThemeController.setIsLogin(true);
|
ThemeController.isLogin = true;
|
||||||
this._themeWatcher.recheck();
|
this._themeWatcher.recheck();
|
||||||
break;
|
break;
|
||||||
case 'start_post_registration':
|
case 'start_post_registration':
|
||||||
|
@ -763,7 +763,7 @@ export default createReactClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setStateForNewView(newState);
|
this.setStateForNewView(newState);
|
||||||
ThemeController.setIsLogin(true);
|
ThemeController.isLogin = true;
|
||||||
this._themeWatcher.recheck();
|
this._themeWatcher.recheck();
|
||||||
this.notifyNewScreen('register');
|
this.notifyNewScreen('register');
|
||||||
},
|
},
|
||||||
|
@ -915,7 +915,7 @@ export default createReactClass({
|
||||||
view: VIEWS.WELCOME,
|
view: VIEWS.WELCOME,
|
||||||
});
|
});
|
||||||
this.notifyNewScreen('welcome');
|
this.notifyNewScreen('welcome');
|
||||||
ThemeController.setIsLogin(true);
|
ThemeController.isLogin = true;
|
||||||
this._themeWatcher.recheck();
|
this._themeWatcher.recheck();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -926,7 +926,7 @@ export default createReactClass({
|
||||||
});
|
});
|
||||||
this._setPage(PageTypes.HomePage);
|
this._setPage(PageTypes.HomePage);
|
||||||
this.notifyNewScreen('home');
|
this.notifyNewScreen('home');
|
||||||
ThemeController.setIsLogin(false);
|
ThemeController.isLogin = false;
|
||||||
this._themeWatcher.recheck();
|
this._themeWatcher.recheck();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1240,7 +1240,7 @@ export default createReactClass({
|
||||||
});
|
});
|
||||||
this.subTitleStatus = '';
|
this.subTitleStatus = '';
|
||||||
this._setPageSubtitle();
|
this._setPageSubtitle();
|
||||||
ThemeController.setIsLogin(true);
|
ThemeController.isLogin = true;
|
||||||
this._themeWatcher.recheck();
|
this._themeWatcher.recheck();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,6 @@ import {DEFAULT_THEME, enumerateThemes} from "../../theme";
|
||||||
export default class ThemeController extends SettingController {
|
export default class ThemeController extends SettingController {
|
||||||
static isLogin = false;
|
static isLogin = false;
|
||||||
|
|
||||||
static setIsLogin(val) {
|
|
||||||
ThemeController.isLogin = val;
|
|
||||||
}
|
|
||||||
|
|
||||||
getValueOverride(level, roomId, calculatedValue, calculatedAtLevel) {
|
getValueOverride(level, roomId, calculatedValue, calculatedAtLevel) {
|
||||||
if (!calculatedValue) return null; // Don't override null themes
|
if (!calculatedValue) return null; // Don't override null themes
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue