mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
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:
parent
6997270e82
commit
9d0d586798
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user