Skip to content
Snippets Groups Projects
Verified Commit 5fb9545e authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

update: remove menu

parent 4e09bb1c
No related branches found
No related tags found
1 merge request!59Remove all content for Alpha
.views-container
#circle-chat
include page-circle-chat.pug
#circle-profile
include page-circle-profile.pug
#circle-edit
include page-circle-edit.pug
#circle-create
include page-circle-create.pug
nav.jsRightMenu(role='navigation')
sib-router(default-route='circle-chat')
ul
li.jsOffsiteToggle
a Fold menu
sib-route(name='circle-chat')
li
a Chat
sib-route(name='circle-profile')
li
a Information
sib-route(name='circle-edit')
//- li
//- a Edit
sib-route(name='circle-create')
//- li
//- a Add new
\ No newline at end of file
//- #circle-profile
//- include page-circle-profile.pug
//- #circle-edit
//- include page-circle-edit.pug
//- #circle-create
//- include page-circle-create.pug
//- nav.jsRightMenu(role='navigation')
//- sib-router(default-route='circle-chat')
//- ul
//- li.jsOffsiteToggle
//- a Fold menu
//- sib-route(name='circle-chat')
//- li
//- a Chat
//- sib-route(name='circle-profile')
//- li
//- a Information
//- sib-route(name='circle-edit')
//- //- li
//- //- a Edit
//- sib-route(name='circle-create')
//- //- li
//- //- a Add new
\ No newline at end of file
......@@ -35,15 +35,16 @@ document.addEventListener('DOMContentLoaded', function (event) {
});
});
//- Header login hide/show
// if(document.querySelector('sib-auth').getUser() !== null) {
// document.querySelector('button[role="log in"]').style.display = 'none';
// //- Token expired, hack for ask relogin
// 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.color = 'red';
// document.querySelector('button[role="log in"]').innerHTML = 'Re-login';
// }
// }
document.querySelector('sib-auth').getUser().then(user => {
if(user !== null) {
document.querySelector('button[role="log in"]').style.display = 'none';
//- Token expired, hack for ask relogin
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.color = 'red';
document.querySelector('button[role="log in"]').innerHTML = 'Re-login';
}
}
}).catch(error => console.log(error));
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment