From efed348a9446a4c5c9aef10a6ba3c65a4efadfa7 Mon Sep 17 00:00:00 2001 From: Hannes Heine Date: Wed, 13 Oct 2021 05:34:14 +0200 Subject: [PATCH 1/3] Change the Test name so that we see if their is a publisher ID or not Co-authored-by: Moriz Wahl --- frontend/src/components/SidebarPlugin/SideBar.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/SidebarPlugin/SideBar.spec.js b/frontend/src/components/SidebarPlugin/SideBar.spec.js index 385c2bbef..2792c16b6 100644 --- a/frontend/src/components/SidebarPlugin/SideBar.spec.js +++ b/frontend/src/components/SidebarPlugin/SideBar.spec.js @@ -82,7 +82,7 @@ describe('SideBar', () => { }) describe('static menu items', () => { - describe("member's area", () => { + describe("member's area without publisher ID", () => { it('has a link to the elopage', () => { expect(wrapper.findAll('li').at(0).text()).toContain('members_area') }) From 2506480a52eef1d1046ef2fc46fc5f62f0dc1339 Mon Sep 17 00:00:00 2001 From: Hannes Heine Date: Wed, 13 Oct 2021 05:35:06 +0200 Subject: [PATCH 2/3] Update frontend/src/components/SidebarPlugin/SideBar.spec.js Co-authored-by: Moriz Wahl --- frontend/src/components/SidebarPlugin/SideBar.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/SidebarPlugin/SideBar.spec.js b/frontend/src/components/SidebarPlugin/SideBar.spec.js index 2792c16b6..993fdf195 100644 --- a/frontend/src/components/SidebarPlugin/SideBar.spec.js +++ b/frontend/src/components/SidebarPlugin/SideBar.spec.js @@ -109,7 +109,7 @@ describe('SideBar', () => { }) }) - describe('with hasElopage is true', () => { + describe('member's area with publisher ID', () => { beforeEach(() => { mocks.$store.state.hasElopage = true }) From 861fc217662b62a7c5270bf2a4288fc63a4510eb Mon Sep 17 00:00:00 2001 From: Hannes Heine Date: Wed, 13 Oct 2021 05:35:48 +0200 Subject: [PATCH 3/3] Update frontend/src/components/SidebarPlugin/SideBar.vue Co-authored-by: Moriz Wahl --- frontend/src/components/SidebarPlugin/SideBar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/SidebarPlugin/SideBar.vue b/frontend/src/components/SidebarPlugin/SideBar.vue index 9dc0a2765..5971b7b4e 100755 --- a/frontend/src/components/SidebarPlugin/SideBar.vue +++ b/frontend/src/components/SidebarPlugin/SideBar.vue @@ -114,7 +114,7 @@ export default { getElopageLink() { return this.$store.state.hasElopage ? `https://elopage.com/s/gradido/sign_in?locale=${this.$i18n.locale}` - : `https://elopage.com/s/gradido/basic-de/payment?locale=${this.$i18n.locale}&prid=111&pid=${this.$store.state.publisherId}&firstName=${this.$store.state.firstName}&lastName=${this.$store.state.lastName}&email=${this.$store.state.email}` + : encodeURL(`https://elopage.com/s/gradido/basic-de/payment?locale=${this.$i18n.locale}&prid=111&pid=${this.$store.state.publisherId}&firstName=${this.$store.state.firstName}&lastName=${this.$store.state.lastName}&email=${this.$store.state.email})` }, }, }