From e0de230ef2b8d28465eddf5757009c807b2cc751 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 28 Feb 2018 06:23:21 +0200 Subject: [PATCH] Hide activepanel when settingsmenu closes --- client/src/ui/components/BdSettings.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/src/ui/components/BdSettings.vue b/client/src/ui/components/BdSettings.vue index b3073676..11a1d5fb 100644 --- a/client/src/ui/components/BdSettings.vue +++ b/client/src/ui/components/BdSettings.vue @@ -124,6 +124,16 @@ openTwitter() { shell.openExternal('https://twitter.com/Jiiksi'); } + }, + watch: { + active(newVal, oldVal) { + if (!newVal) { + this.sidebarItems.find(item => item.id === this.activeIndex).active = false; + this.activeIndex = this.lastActiveIndex = -1; + this.animating = false; + this.first = true; + } + } } }