diff options
Diffstat (limited to 'overview/public/script.js')
-rw-r--r-- | overview/public/script.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/overview/public/script.js b/overview/public/script.js index d7e5b71..3e56fc8 100644 --- a/overview/public/script.js +++ b/overview/public/script.js @@ -5,6 +5,7 @@ fetch("/auth/api/status") const first = document.querySelectorAll("a")[0]; const second = document.querySelectorAll("a")[1]; const third = document.querySelectorAll("a")[2]; + const fourth = document.querySelectorAll("a")[3]; if (!response.admin) third.style.display = "none"; @@ -17,6 +18,10 @@ fetch("/auth/api/status") third.href = "/admin"; third.innerText = "Admin"; } + if (response.superAdmin) { + fourth.href = "/super"; + fourth.textContent = "Super-Duper-Admin-Spaß"; + } } else { document.querySelectorAll("div.pure-menu")[0].style.display = "none"; } |