Ability to disable apps using appconfig

This commit is contained in:
yflory
2018-12-12 14:52:58 +01:00
parent f883fb7e04
commit ae7d97b3dd
6 changed files with 59 additions and 3 deletions

View File

@@ -54,6 +54,16 @@ define([
APP.toolbar = Toolbar.create(configTb);
APP.toolbar.$rightside.hide();
// we're in upload mode
if (!common.isLoggedIn()) {
UI.removeLoadingScreen();
return UI.alert(Messages.contacts_mustLogin, function () {
common.setLoginRedirect(function () {
common.gotoURL('/login/');
});
});
}
MessengerUI.create($(appElement), common);
UI.removeLoadingScreen();