From 97aec35e800cf146c41df7b7436539733d61d980 Mon Sep 17 00:00:00 2001 From: pieterlukasse Date: Thu, 27 Jun 2024 15:04:35 +0200 Subject: [PATCH] fix: hide menu options until user has logged in --- index.html | 2 ++ js/Application.js | 1 + 2 files changed, 3 insertions(+) diff --git a/index.html b/index.html index 7fe9cf11f..331147111 100644 --- a/index.html +++ b/index.html @@ -41,6 +41,7 @@
+ @@ -49,6 +50,7 @@ +
diff --git a/js/Application.js b/js/Application.js index eb95f499d..915fc08be 100644 --- a/js/Application.js +++ b/js/Application.js @@ -96,6 +96,7 @@ define( }); this.companyInfoTemplate = config.companyInfoCustomHtmlTemplate; this.showCompanyInfo = config.showCompanyInfo; + this.isLoggedIn = ko.computed(() => authApi.isAuthenticated()); } /**