Update project files
This commit is contained in:
@@ -159,6 +159,9 @@ document.getElementById('grid').addEventListener('click', e => {
|
||||
(async () => {
|
||||
if (await checkAuth()) {
|
||||
buildSidebar(document.body.dataset.page);
|
||||
const detachedTab = document.getElementById('detachedTab');
|
||||
if (detachedTab) detachedTab.style.display = isAdmin() ? '' : 'none';
|
||||
if (mode === 'detached' && !isAdmin()) { mode = 'attached'; }
|
||||
document.querySelectorAll('#tabToggle button').forEach(b => {
|
||||
b.classList.toggle('active', b.dataset.mode === mode);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user