bugfix, with changing vite.config.js to correctly copy the boolean configs for humhub and gms active, the config value is now an boolena rather than a string in frontend

This commit is contained in:
einhornimmond 2025-03-25 10:52:42 +01:00
parent 6997270e82
commit 9d0d586798
2 changed files with 6 additions and 13 deletions

View File

@ -54,8 +54,8 @@ const createVuexStore = (state = {}) =>
},
})
CONFIG.GMS_ACTIVE = 'true'
CONFIG.HUMHUB_ACTIVE = 'true'
CONFIG.GMS_ACTIVE = true
CONFIG.HUMHUB_ACTIVE = true
describe('Sidebar', () => {
let wrapper

View File

@ -238,17 +238,10 @@ const isHumhubActivated = computed(() => {
return humhubAllowed.value === true
})
const isGMS = computed(() => {
return CONFIG.GMS_ACTIVE === 'true'
})
const isHumhub = computed(() => {
return CONFIG.HUMHUB_ACTIVE === 'true'
})
const isCommunityService = computed(() => {
return isGMS.value || isHumhub.value
})
// setting if gms and/or humhub are enabled in frontend config .env
const isGMS = CONFIG.GMS_ACTIVE
const isHumhub = CONFIG.HUMHUB_ACTIVE
const isCommunityService = isGMS || isHumhub
const { mutate: updateUserData } = useMutation(updateUserInfos)