Hide activepanel when settingsmenu closes

This commit is contained in:
Jiiks 2018-02-28 06:23:21 +02:00
parent f255c010cd
commit e0de230ef2
1 changed files with 10 additions and 0 deletions

View File

@ -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;
}
}
}
}
</script>