From 574be67bfcfb95949005253c66abd4fbb7c2cb04 Mon Sep 17 00:00:00 2001 From: asefubeierl Date: Wed, 27 Nov 2024 09:11:55 +0100 Subject: [PATCH] fix: make the message in applications hideable --- .../src/main/resources/templates/index.html | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/shogun-boot/src/main/resources/templates/index.html b/shogun-boot/src/main/resources/templates/index.html index 70db9e8c..968847d4 100644 --- a/shogun-boot/src/main/resources/templates/index.html +++ b/shogun-boot/src/main/resources/templates/index.html @@ -106,9 +106,12 @@

Welcome to SHOGun

Applications

- +

@@ -176,8 +179,9 @@

Applications

: '' })); if (!keycloak.authenticated || !applications) { - document.querySelector('#app-label-visibility').hidden = false; + document.querySelector('#login-alert').hidden = false; } + const appsEl = document.querySelector('.apps'); // Create web components @@ -197,20 +201,19 @@

Applications

} }); - - if (appsEl) { - appInfos.forEach(app => { - const html = `` + - `` + - `${app.logo}` + - `` + - `${app.name}` + - `${app.description}` + - ``; - appsEl.insertAdjacentHTML('beforeend', html); - }); - } + if (appsEl) { + appInfos.forEach(app => { + const html = `` + + `` + + `${app.logo}` + + `` + + `${app.name}` + + `${app.description}` + + ``; + appsEl.insertAdjacentHTML('beforeend', html); + }); + } // Check for admin role const hasAdminRole = keycloak.hasResourceRole('admin', 'shogun-admin');