export class MenuService {
isMenuDisplayed = true
isMenuChangedByUser = false
- menuWidth = 240 // should be kept equal to $menu-width
+ menuWidth = 240 // should be kept equal to $menu-width
constructor (
private screenService: ScreenService
// On touch screens, lock body scroll and display content overlay when memu is opened
if (this.isMenuDisplayed) {
document.body.classList.add('menu-open')
- this.screenService.onFingerSwipe('left', () => { this.setMenuDisplay(false) })
+ this.screenService.onFingerSwipe('left', () => this.setMenuDisplay(false))
return
}
path: '/videos/trending'
},
{
- icon: 'recently-added' as 'recently-added',
+ icon: 'add' as 'add',
label: $localize`Recently added videos`,
shortLabel: $localize`Recently added`,
path: '/videos/recently-added'