fix connection check on webpack.data.common
This commit is contained in:
parent
e3c47d3a36
commit
e685dadd55
|
@ -35,8 +35,8 @@ gstore.add('menu_item', {
|
|||
});
|
||||
|
||||
/* (3) Gestion du login/logout */
|
||||
if( _SERVER.connected ) gstore.get.menu_item.login = { label: 'Connexion', url: 'login', icon: 'login' };
|
||||
else gstore.get.menu_item.logout = { label: 'Déconnexion', url: 'logout', icon: 'logout' };
|
||||
if( _SERVER.session.connected ) gstore.get.menu_item.logout = { label: 'Déconnexion', url: 'logout', icon: 'logout' };
|
||||
else gstore.get.menu_item.login = { label: 'Connexion', url: 'login', icon: 'login' };
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue