From 87af65098078c215864fcb2f66376919768e8a97 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Mon, 13 May 2024 14:46:13 +0200 Subject: [PATCH] change to using v-if --- frontend/src/components/Menu/Sidebar.vue | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/Menu/Sidebar.vue b/frontend/src/components/Menu/Sidebar.vue index e71fdbfeb..3a5363f60 100644 --- a/frontend/src/components/Menu/Sidebar.vue +++ b/frontend/src/components/Menu/Sidebar.vue @@ -28,11 +28,11 @@ {{ $t('navigation.info') }} - + {{ $t('navigation.circles') }} - + {{ $t('navigation.usersearch') }} @@ -91,18 +91,11 @@ export default { } return 'mb-3' }, - humhubClass() { - if (CONFIG.HUMHUB_ACTIVE === 'true') { - return 'mb-3' - } else { - return 'invisible' - } + isHumhub() { + return CONFIG.HUMHUB_ACTIVE === 'true' }, - GMSClass() { - if (CONFIG.GMS_ACTIVE !== 'true') { - return 'invisible' - } - return '' + isGMS() { + return CONFIG.HUMHUB_ACTIVE === 'true' }, }, } @@ -124,9 +117,6 @@ export default { filter: brightness(0) invert(0); } -.invisible { - display: none; -} #component-sidebar { min-width: 200px; }