From 8280b3960865aaf7b1454d53db6f61e39b1aac93 Mon Sep 17 00:00:00 2001 From: Petrisor Frincu Date: Mon, 4 Nov 2024 10:39:09 +0200 Subject: [PATCH 1/9] Reload page after login --- apps/web/components/LoginComponent/LoginComponent.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/components/LoginComponent/LoginComponent.vue b/apps/web/components/LoginComponent/LoginComponent.vue index 6e8a7ffec..3d77bbd6d 100644 --- a/apps/web/components/LoginComponent/LoginComponent.vue +++ b/apps/web/components/LoginComponent/LoginComponent.vue @@ -65,6 +65,7 @@ const loginUser = async () => { await getSession(); } } + window.location.reload(); } }; From f2b2a95471a012e8304bd843e38fb27725638ad3 Mon Sep 17 00:00:00 2001 From: Petrisor Frincu Date: Mon, 4 Nov 2024 10:40:33 +0200 Subject: [PATCH 2/9] Reload page after login --- docs/changelog/changelog_en.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changelog/changelog_en.md b/docs/changelog/changelog_en.md index 37de61d1b..6853feb0b 100644 --- a/docs/changelog/changelog_en.md +++ b/docs/changelog/changelog_en.md @@ -9,6 +9,7 @@ - Fluid logo container + max-width and max-height addaptation - Fix cls mobile - Edit mode toolbar + Json editor Front End +- Reload page after login so the customer class affects prices and categories ### New From 7976fd144222eae2fa8f2eade4703f641fa1bbdd Mon Sep 17 00:00:00 2001 From: Petrisor Frincu Date: Wed, 6 Nov 2024 16:59:24 +0200 Subject: [PATCH 3/9] Update accordingly to PR --- apps/web/components/LoginComponent/LoginComponent.vue | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/web/components/LoginComponent/LoginComponent.vue b/apps/web/components/LoginComponent/LoginComponent.vue index 3d77bbd6d..26eae9c59 100644 --- a/apps/web/components/LoginComponent/LoginComponent.vue +++ b/apps/web/components/LoginComponent/LoginComponent.vue @@ -58,13 +58,6 @@ const loginUser = async () => { if (success) { send({ message: t('auth.login.success'), type: 'positive' }); emits('loggedIn'); - if (!isSoftLogin) { - const currentURL = window.location.href; - if (currentURL.includes(paths.checkout)) { - await loadAddresses(); - await getSession(); - } - } window.location.reload(); } }; From 08953c8ed83780191ad2f38d9ecf7de6cf10717d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20R=C3=B6ll?= <30629157+maxiroellplenty@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:03:17 +0100 Subject: [PATCH 4/9] Update changelog_en.md --- docs/changelog/changelog_en.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog/changelog_en.md b/docs/changelog/changelog_en.md index 10fb9075a..57d76c706 100644 --- a/docs/changelog/changelog_en.md +++ b/docs/changelog/changelog_en.md @@ -6,6 +6,9 @@ - Newsletter email confirmation +### 🩹 Fixed +- Reload page after login so the customer class affects prices and categories + ## v1.7.0 (2024-11-06) Overview of all changes ### New @@ -21,7 +24,6 @@ - Enabled font color customization for the hero banner via a template property. - Added a new carousel compoment. - Added an edit mode toolbar and JSON editor for the front end. Note that this is a preparatory step. Further functionality will be added in an upcoming version. -- Reload page after login so the customer class affects prices and categories ### 🩹 Fixed From 3681c01383f727a153b74aafd0eb2c5aec018050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20R=C3=B6ll?= <30629157+maxiroellplenty@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:10:41 +0100 Subject: [PATCH 5/9] chore: remove unused code --- apps/web/components/LoginComponent/LoginComponent.vue | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/apps/web/components/LoginComponent/LoginComponent.vue b/apps/web/components/LoginComponent/LoginComponent.vue index 26eae9c59..2999180a1 100644 --- a/apps/web/components/LoginComponent/LoginComponent.vue +++ b/apps/web/components/LoginComponent/LoginComponent.vue @@ -29,14 +29,9 @@ diff --git a/apps/web/components/LoginComponent/types.ts b/apps/web/components/LoginComponent/types.ts index 7124912c2..4a6a5fdc7 100644 --- a/apps/web/components/LoginComponent/types.ts +++ b/apps/web/components/LoginComponent/types.ts @@ -1,4 +1,5 @@ export type LoginProps = { isSoftLogin?: boolean; isModal?: boolean; + skipReload?: boolean; }; diff --git a/apps/web/components/ui/ReviewModal/ReviewModal.vue b/apps/web/components/ui/ReviewModal/ReviewModal.vue index 6c9b5f0ac..d4cad40d2 100644 --- a/apps/web/components/ui/ReviewModal/ReviewModal.vue +++ b/apps/web/components/ui/ReviewModal/ReviewModal.vue @@ -13,7 +13,7 @@ From af1ec60719b31e4b49ff9adcb43f78d99ba6fa36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20R=C3=B6ll?= <30629157+maxiroellplenty@users.noreply.github.com> Date: Thu, 7 Nov 2024 11:12:18 +0100 Subject: [PATCH 9/9] fix: lint --- apps/web/components/ui/ReviewModal/ReviewModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/components/ui/ReviewModal/ReviewModal.vue b/apps/web/components/ui/ReviewModal/ReviewModal.vue index d4cad40d2..e3d3f8b6e 100644 --- a/apps/web/components/ui/ReviewModal/ReviewModal.vue +++ b/apps/web/components/ui/ReviewModal/ReviewModal.vue @@ -13,7 +13,7 @@