fix connection check on webpack.data.common

This commit is contained in:
xdrm-brackets 2018-02-20 19:40:26 +01:00
parent e3c47d3a36
commit e685dadd55
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ gstore.add('menu_item', {
}); });
/* (3) Gestion du login/logout */ /* (3) Gestion du login/logout */
if( _SERVER.connected ) gstore.get.menu_item.login = { label: 'Connexion', url: 'login', icon: 'login' }; if( _SERVER.session.connected ) gstore.get.menu_item.logout = { label: 'Déconnexion', url: 'logout', icon: 'logout' };
else gstore.get.menu_item.logout = { label: 'Déconnexion', url: 'logout', icon: 'logout' }; else gstore.get.menu_item.login = { label: 'Connexion', url: 'login', icon: 'login' };