diff --git a/FrontEnd/components/NavBar.vue b/FrontEnd/components/NavBar.vue
index d91d39b..19bf28b 100644
--- a/FrontEnd/components/NavBar.vue
+++ b/FrontEnd/components/NavBar.vue
@@ -114,22 +114,20 @@
{{ $auth.$storage.getUniversal("userLastName") }}
-
{{ $t("Log in/Sign up") }}
-
+
-
{{ $t("Log in/Sign up") }}
-
+
- {{ $t("Log in/Sign up") }}
@@ -783,8 +781,8 @@ export default {
},
},
pictureStatus: {
- handler: async function (newVal, oldVal) {
- await this.fetchUser();
+ handler: function (newVal, oldVal) {
+ this.fetchUser();
this.$forceUpdate();
},
},
@@ -1054,6 +1052,16 @@ export default {
this.$nuxt.refresh();
this.UserInfoPopup = false;
},
+ toUser(){
+ this.$auth.$storage.removeUniversal("authtoken");
+ this.$auth.$storage.removeUniversal("userPicture");
+ this.$auth.$storage.removeUniversal("userLastName");
+ this.$auth.$storage.removeUniversal("userBeforePath");
+ this.$router.push(this.localePath("/user"));
+ this.$auth.logout();
+ this.$nuxt.refresh();
+ this.UserInfoPopup = false;
+ }
// socialRegister() {
// if (this.$auth.loggedIn) {
// const jsonPayload =