X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fcore%2Fmenu%2Fmenu.service.ts;h=d865c7da2e7ce2e5f0e75c1370571e6d6ec915b8;hb=2c8380a46f34631e705b1564938343cacfa4b0bc;hp=0b8d0191e15dfe113aacce005c5cab250c106886;hpb=421ff4618da64f0849353383f690a014024c40da;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/core/menu/menu.service.ts b/client/src/app/core/menu/menu.service.ts index 0b8d0191e..d865c7da2 100644 --- a/client/src/app/core/menu/menu.service.ts +++ b/client/src/app/core/menu/menu.service.ts @@ -7,6 +7,7 @@ import { ScreenService } from '../wrappers' export type MenuLink = { icon: GlobalIconName + iconClass?: string label: string // Used by the left menu for example @@ -25,7 +26,7 @@ export type MenuSection = { 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 @@ -55,7 +56,7 @@ export class MenuService { // 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 } @@ -70,6 +71,14 @@ export class MenuService { let links: MenuLink[] = [] if (userCanSeeVideosLink) { + links.push({ + path: '/my-library/video-channels', + icon: 'channel' as GlobalIconName, + iconClass: 'channel-icon', + shortLabel: $localize`Channels`, + label: $localize`My channels` + }) + links.push({ path: '/my-library/videos', icon: 'videos' as GlobalIconName, @@ -132,7 +141,7 @@ export class MenuService { 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'