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"));