Merge pull request #147 from JsSucks/settings-animation
Hide activepanel when settingsmenu closes
This commit is contained in:
commit
fab7371d66
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue