<div class="header">
<div class="top-left-block">
- <span class="icon icon-menu" (click)="menu.toggleMenu()"></span>
+ <span class="icon icon-menu" role="button" [title]="getToggleTitle()" (click)="menu.toggleMenu()"></span>
<a class="peertube-title" [routerLink]="defaultRoute">
<span class="icon icon-logo"></span>
this.pluginService.initializeCustomModal(this.customModal)
}
+ getToggleTitle () {
+ if (this.menu.isDisplayed()) return $localize`Close the left menu`
+
+ return $localize`Open the left menu`
+ }
+
isUserLoggedIn () {
return this.authService.isLoggedIn()
}
this.isMenuChangedByUser = true
}
+ isDisplayed () {
+ return this.isMenuDisplayed
+ }
+
setMenuDisplay (display: boolean) {
this.isMenuDisplayed = display