add dependency of overview cards

This commit is contained in:
clauspeterhuebner 2025-03-27 23:55:56 +01:00
parent a9bfc6f837
commit 507f6d2512

View File

@ -1,12 +1,16 @@
<template>
<div class="overview">
<BCol>
<BRow>
<card-circles />
</BRow>
<BRow>
<card-user-search />
</BRow>
<div v-if="isHumhubActive">
<BRow>
<card-circles />
</BRow>
</div>
<div v-if="isGmsActive">
<BRow>
<card-user-search />
</BRow>
</div>
</BCol>
</div>
</template>
@ -14,11 +18,23 @@
// import CommunityNews from '@/components/Overview/CommunityNews'
import CardCircles from '@/components/Overview/CardCircles'
import CardUserSearch from '@/components/Overview/CardUserSearch'
import CONFIG from '@/config'
export default {
name: 'Overview',
components: {
CardCircles,
CardUserSearch,
},
computed: {
isGmsActive() {
console.log('isGmsActive=', CONFIG.GMS_ACTIVE)
return CONFIG.GMS_ACTIVE === true
},
isHumhubActive() {
console.log('isHumhubActive=', CONFIG.HUMHUB_ACTIVE)
return CONFIG.HUMHUB_ACTIVE === true
},
}
}
</script>