diff options
author | Chocobozzz <me@florianbigard.com> | 2022-09-28 15:43:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-09-28 15:43:59 +0200 |
commit | 77662dae240e6a60e0c5e659e79d48df8d6a5e99 (patch) | |
tree | 63c5b877eebf8f9a8f253b7a268c17ccef95a579 /client/src/app/core/menu | |
parent | 251ce26db364e1d7468b43ca917dee648a9ad133 (diff) | |
download | PeerTube-77662dae240e6a60e0c5e659e79d48df8d6a5e99.tar.gz PeerTube-77662dae240e6a60e0c5e659e79d48df8d6a5e99.tar.zst PeerTube-77662dae240e6a60e0c5e659e79d48df8d6a5e99.zip |
Add channels link in menu
Diffstat (limited to 'client/src/app/core/menu')
-rw-r--r-- | client/src/app/core/menu/menu.service.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/src/app/core/menu/menu.service.ts b/client/src/app/core/menu/menu.service.ts index 81837db7e..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' | |||
7 | 7 | ||
8 | export type MenuLink = { | 8 | export type MenuLink = { |
9 | icon: GlobalIconName | 9 | icon: GlobalIconName |
10 | iconClass?: string | ||
10 | 11 | ||
11 | label: string | 12 | label: string |
12 | // Used by the left menu for example | 13 | // Used by the left menu for example |
@@ -71,6 +72,14 @@ export class MenuService { | |||
71 | 72 | ||
72 | if (userCanSeeVideosLink) { | 73 | if (userCanSeeVideosLink) { |
73 | links.push({ | 74 | links.push({ |
75 | path: '/my-library/video-channels', | ||
76 | icon: 'channel' as GlobalIconName, | ||
77 | iconClass: 'channel-icon', | ||
78 | shortLabel: $localize`Channels`, | ||
79 | label: $localize`My channels` | ||
80 | }) | ||
81 | |||
82 | links.push({ | ||
74 | path: '/my-library/videos', | 83 | path: '/my-library/videos', |
75 | icon: 'videos' as GlobalIconName, | 84 | icon: 'videos' as GlobalIconName, |
76 | shortLabel: $localize`Videos`, | 85 | shortLabel: $localize`Videos`, |