Minor changes

This commit is contained in:
2018-03-07 14:52:56 +01:00
parent d583d9d6f9
commit 1b0aa76009
6 changed files with 31 additions and 5 deletions

View File

@ -26,4 +26,14 @@ export class SideBar {
hide() {
this.element.classList.remove("sidebar-visible")
}
toggle() {
let visible = this.element.style.display !== "none"
if(visible) {
this.element.style.display = "none"
} else {
this.element.style.display = "flex"
}
}
}