From 24e7916c6897bbb38e057cdf1a102286006be964 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 5 Feb 2020 20:54:37 +0100 Subject: Add ListOverflow component to prevent sub-menu overflow --- client/src/app/+video-channels/video-channels.component.html | 10 ++++++---- client/src/app/+video-channels/video-channels.component.ts | 8 ++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'client/src/app/+video-channels') diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.html index debda9948..735a8f2c8 100644 --- a/client/src/app/+video-channels/video-channels.component.html +++ b/client/src/app/+video-channels/video-channels.component.html @@ -29,10 +29,12 @@ - diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts index 5ca9581a8..0889ca854 100644 --- a/client/src/app/+video-channels/video-channels.component.ts +++ b/client/src/app/+video-channels/video-channels.component.ts @@ -9,6 +9,7 @@ import { AuthService, Notifier } from '@app/core' import { Hotkey, HotkeysService } from 'angular2-hotkeys' import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component' import { I18n } from '@ngx-translate/i18n-polyfill' +import { ListOverflowItem } from '@app/shared/misc/list-overflow.component' @Component({ templateUrl: './video-channels.component.html', @@ -19,6 +20,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { videoChannel: VideoChannel hotkeys: Hotkey[] + links: ListOverflowItem[] = [] isChannelManageable = false private routeSub: Subscription @@ -62,6 +64,12 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { }, undefined, this.i18n('Subscribe to the account')) ] if (this.isUserLoggedIn()) this.hotkeysService.add(this.hotkeys) + + this.links = [ + { label: this.i18n('Videos'), routerLink: 'videos' }, + { label: this.i18n('Video playlists'), routerLink: 'video-playlists' }, + { label: this.i18n('About'), routerLink: 'about' } + ] } ngOnDestroy () { -- cgit v1.2.3