From 07c0801ad526b3f40480b0be10418e1274b5a312 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Wed, 20 Apr 2022 22:39:07 +0800 Subject: [PATCH] Make logout button reactive, improve dropdown menu css --- src/components/settings/Security.vue | 2 ++ src/layouts/Layout.vue | 6 ++++-- src/mixins/socket.js | 2 +- src/pages/Settings.vue | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/settings/Security.vue b/src/components/settings/Security.vue index a72b07274..87bb745a1 100644 --- a/src/components/settings/Security.vue +++ b/src/components/settings/Security.vue @@ -321,6 +321,8 @@ export default { // Set it to empty if done this.saveSettings(() => { this.password.currentPassword = ""; + this.$root.username = null; + this.$root.socket.token = "autoLogin"; }, this.password.currentPassword); }, diff --git a/src/layouts/Layout.vue b/src/layouts/Layout.vue index 2a00924e2..7f9598bfb 100644 --- a/src/layouts/Layout.vue +++ b/src/layouts/Layout.vue @@ -50,7 +50,7 @@ {{ $t("Settings") }} -
  • +