Add watcher

pull/496/head
Cagatay Civici 2020-09-21 16:12:08 +03:00
parent 9fe4700be3
commit e62d00331e
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ export default {
d_collapsed: this.collapsed
}
},
watch: {
collapsed(newValue) {
this.d_collapsed = newValue;
}
},
methods: {
toggle(event) {
this.d_collapsed = !this.d_collapsed;