From aba35eae1aa7b41719fa1fb6f43c622d06bc745c Mon Sep 17 00:00:00 2001 From: LarsVomMars Date: Sun, 31 Jan 2021 01:36:25 +0100 Subject: SICKO MODE --- overview/public/script.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'overview/public/script.js') 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"; } -- cgit v1.2.3