From fb93b39a194d33562bdcc030811a9a5b3accb33d Mon Sep 17 00:00:00 2001 From: elweyn Date: Tue, 12 Oct 2021 12:31:37 +0200 Subject: [PATCH] Changed the logic behind the link to elopage, when user has an account it sends to the login page, else it sends to the registration process of elopage --- frontend/src/components/SidebarPlugin/SideBar.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/SidebarPlugin/SideBar.vue b/frontend/src/components/SidebarPlugin/SideBar.vue index 519a4f0b1..312be6b8a 100755 --- a/frontend/src/components/SidebarPlugin/SideBar.vue +++ b/frontend/src/components/SidebarPlugin/SideBar.vue @@ -47,12 +47,9 @@
@@ -114,6 +111,11 @@ export default { logout() { this.$emit('logout') }, + getElopageLink() { + return this.$store.state.hasElopage + ? `https://elopage.com/s/gradido/sign_in?locale=${this.$i18n.locale}&email=${this.$store.state.email}` + : `https://elopage.com/s/gradido/basic-de/payment?locale=de&prid=111&pid=${this.$store.state.publisherId}&firstName=${this.$store.state.firstName}&lastName=${this.$store.state.lastName}&email=${this.$store.state.email}` + }, }, }