move closing logic to drawer, add swipe to close

This commit is contained in:
shpuld 2018-12-23 19:50:19 +02:00
parent f72b1d048e
commit e46b560ead
5 changed files with 78 additions and 62 deletions

View file

@ -30,8 +30,7 @@ export default {
window.CSS.supports('-moz-mask-size', 'contain') ||
window.CSS.supports('-ms-mask-size', 'contain') ||
window.CSS.supports('-o-mask-size', 'contain')
),
showMobileSidebar: false
)
}),
created () {
// Load the locale from the storage
@ -93,7 +92,7 @@ export default {
this.finderHidden = hidden
},
toggleMobileSidebar () {
this.showMobileSidebar = !this.showMobileSidebar
this.$refs.sideDrawer.toggleDrawer()
}
}
}