diff --git a/backend/.env.test_e2e b/backend/.env.test_e2e index d92135376..b97c51a8b 100644 --- a/backend/.env.test_e2e +++ b/backend/.env.test_e2e @@ -2,7 +2,8 @@ JWT_EXPIRES_IN=2m GDT_ACTIVE=false -OPENAI_ACTIVE=false +HUMHUB_ACTIVE=false +GMS_ACTIVE=false # Email EMAIL=true diff --git a/backend/src/graphql/model/User.ts b/backend/src/graphql/model/User.ts index 043bc8abd..afcde6785 100644 --- a/backend/src/graphql/model/User.ts +++ b/backend/src/graphql/model/User.ts @@ -41,7 +41,6 @@ export class User { this.gmsPublishName = user.gmsPublishName this.humhubPublishName = user.humhubPublishName this.gmsPublishLocation = user.gmsPublishLocation - // eslint-disable-next-line @typescript-eslint/no-unsafe-argument this.userLocation = user.location ? Point2Location(user.location as Point) : null } } diff --git a/frontend/public/img/svg/settings.svg b/frontend/public/img/svg/settings.svg deleted file mode 100644 index f86976790..000000000 --- a/frontend/public/img/svg/settings.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/frontend/src/components/Menu/Sidebar.spec.js b/frontend/src/components/Menu/Sidebar.spec.js index efe0e8cd4..a1256c53f 100644 --- a/frontend/src/components/Menu/Sidebar.spec.js +++ b/frontend/src/components/Menu/Sidebar.spec.js @@ -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 diff --git a/frontend/src/pages/Settings.vue b/frontend/src/pages/Settings.vue index 08fd140f4..72858ea32 100644 --- a/frontend/src/pages/Settings.vue +++ b/frontend/src/pages/Settings.vue @@ -238,6 +238,7 @@ const isHumhubActivated = computed(() => { return humhubAllowed.value === true }) +<<<<<<< HEAD const isGMS = computed(() => { return CONFIG.GMS_ACTIVE === true }) @@ -249,6 +250,12 @@ const isHumhub = computed(() => { 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 +>>>>>>> ed90d6ae7ffa23a6d5c073a5d7bc3c42668fc51d const { mutate: updateUserData } = useMutation(updateUserInfos)