Merge branch '804-elopage-registration' of https://github.com/gradido/gradido into 804-elopage-registration

This commit is contained in:
elweyn 2021-10-13 11:32:58 +02:00
commit f039f8a714
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ describe('SideBar', () => {
}) })
describe('static menu items', () => { describe('static menu items', () => {
describe("member's area", () => { describe("member's area without publisher ID", () => {
it('has a link to the elopage', () => { it('has a link to the elopage', () => {
expect(wrapper.findAll('li').at(0).text()).toContain('members_area') expect(wrapper.findAll('li').at(0).text()).toContain('members_area')
}) })
@ -109,7 +109,7 @@ describe('SideBar', () => {
}) })
}) })
describe('with hasElopage is true', () => { describe('member's area with publisher ID', () => {
beforeEach(() => { beforeEach(() => {
mocks.$store.state.hasElopage = true mocks.$store.state.hasElopage = true
}) })

View File

@ -114,7 +114,7 @@ export default {
getElopageLink() { getElopageLink() {
return this.$store.state.hasElopage return this.$store.state.hasElopage
? `https://elopage.com/s/gradido/sign_in?locale=${this.$i18n.locale}` ? `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})`
}, },
}, },
} }