- this.routeSub = this.router.events
- .pipe(filter(event => event instanceof NavigationStart))
- .subscribe((event: NavigationStart) => this.updateLibraryLabel(event.url))
- }
+ const libraryEntries: TopMenuDropdownParam = {
+ label: this.i18n('My library'),
+ children: [
+ {
+ label: this.i18n('My channels'),
+ routerLink: '/my-account/video-channels',
+ iconName: 'channel'
+ },
+ {
+ label: this.i18n('My videos'),
+ routerLink: '/my-account/videos',
+ iconName: 'videos'
+ },
+ {
+ label: this.i18n('My playlists'),
+ routerLink: '/my-account/video-playlists',
+ iconName: 'playlists'
+ },
+ {
+ label: this.i18n('My subscriptions'),
+ routerLink: '/my-account/subscriptions',
+ iconName: 'inbox-full'
+ },
+ {
+ label: this.i18n('My history'),
+ routerLink: '/my-account/history/videos',
+ iconName: 'history'
+ }
+ ]
+ }
+
+ if (this.isVideoImportEnabled()) {
+ libraryEntries.children.push({
+ label: 'My imports',
+ routerLink: '/my-account/video-imports',
+ iconName: 'cloud-download'
+ })
+ }