update: remove menu
This commit is contained in:
parent
4e09bb1c52
commit
5fb9545e5c
@ -1,26 +1,26 @@
|
|||||||
.views-container
|
.views-container
|
||||||
#circle-chat
|
#circle-chat
|
||||||
include page-circle-chat.pug
|
include page-circle-chat.pug
|
||||||
#circle-profile
|
//- #circle-profile
|
||||||
include page-circle-profile.pug
|
//- include page-circle-profile.pug
|
||||||
#circle-edit
|
//- #circle-edit
|
||||||
include page-circle-edit.pug
|
//- include page-circle-edit.pug
|
||||||
#circle-create
|
//- #circle-create
|
||||||
include page-circle-create.pug
|
//- include page-circle-create.pug
|
||||||
nav.jsRightMenu(role='navigation')
|
//- nav.jsRightMenu(role='navigation')
|
||||||
sib-router(default-route='circle-chat')
|
//- sib-router(default-route='circle-chat')
|
||||||
ul
|
//- ul
|
||||||
li.jsOffsiteToggle
|
//- li.jsOffsiteToggle
|
||||||
a Fold menu
|
//- a Fold menu
|
||||||
sib-route(name='circle-chat')
|
//- sib-route(name='circle-chat')
|
||||||
li
|
//- li
|
||||||
a Chat
|
//- a Chat
|
||||||
sib-route(name='circle-profile')
|
//- sib-route(name='circle-profile')
|
||||||
li
|
//- li
|
||||||
a Information
|
//- a Information
|
||||||
sib-route(name='circle-edit')
|
//- sib-route(name='circle-edit')
|
||||||
//- li
|
//- //- li
|
||||||
//- a Edit
|
//- //- a Edit
|
||||||
sib-route(name='circle-create')
|
//- sib-route(name='circle-create')
|
||||||
//- li
|
//- //- li
|
||||||
//- a Add new
|
//- //- a Add new
|
@ -35,15 +35,16 @@ document.addEventListener('DOMContentLoaded', function (event) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
//- Header login hide/show
|
document.querySelector('sib-auth').getUser().then(user => {
|
||||||
// if(document.querySelector('sib-auth').getUser() !== null) {
|
if(user !== null) {
|
||||||
// document.querySelector('button[role="log in"]').style.display = 'none';
|
document.querySelector('button[role="log in"]').style.display = 'none';
|
||||||
// //- Token expired, hack for ask relogin
|
//- Token expired, hack for ask relogin
|
||||||
// if(new Date(document.querySelector('sib-auth').getUser().expires_at*1000) <= new Date()) {
|
if(new Date(document.querySelector('sib-auth').getUser().expires_at*1000) <= new Date()) {
|
||||||
// document.querySelector('button[role="log in"]').style.display = '';
|
document.querySelector('button[role="log in"]').style.display = '';
|
||||||
// document.querySelector('button[role="log in"]').style.color = 'red';
|
document.querySelector('button[role="log in"]').style.color = 'red';
|
||||||
// document.querySelector('button[role="log in"]').innerHTML = 'Re-login';
|
document.querySelector('button[role="log in"]').innerHTML = 'Re-login';
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
}).catch(error => console.log(error));
|
||||||
|
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user