Merge pull request #147 from JsSucks/settings-animation

Hide activepanel when settingsmenu closes
This commit is contained in:
Alexei Stukov 2018-02-28 07:04:09 +02:00 committed by GitHub
commit fab7371d66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>