From b007b74a8924bb2821690234705a8ed8c78e6276 Mon Sep 17 00:00:00 2001 From: "github@kiekerjan.isdronken.nl" Date: Mon, 31 May 2021 23:29:00 +0200 Subject: [PATCH] try hide admin links --- management/templates/index.html | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/management/templates/index.html b/management/templates/index.html index 12f6ad8e..03e01687 100644 --- a/management/templates/index.html +++ b/management/templates/index.html @@ -83,7 +83,7 @@ @@ -400,6 +400,13 @@ $(function() { else if (typeof localStorage != 'undefined' && localStorage.getItem("miab-cp-credentials")) api_credentials = localStorage.getItem("miab-cp-credentials").split(":"); + if (!api_credentials[0] && !api_credentials[1]) { + $('.admin-links').hide() + } + else { + $('.admin-links').show() + } + // Recall what the user was last looking at. if (typeof localStorage != 'undefined' && localStorage.getItem("miab-cp-lastpanel")) { show_panel(localStorage.getItem("miab-cp-lastpanel"));