From 77662dae240e6a60e0c5e659e79d48df8d6a5e99 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 28 Sep 2022 15:43:59 +0200 Subject: [PATCH] Add channels link in menu --- client/src/app/core/menu/menu.service.ts | 9 +++++++++ client/src/app/menu/menu.component.html | 4 ++-- client/src/app/menu/menu.component.scss | 21 ++++++-------------- client/src/assets/images/feather/log-out.svg | 2 +- 4 files changed, 18 insertions(+), 18 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' export type MenuLink = { icon: GlobalIconName + iconClass?: string label: string // Used by the left menu for example @@ -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, diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index c1e5f79a6..c5d08ab75 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html @@ -88,7 +88,7 @@ - + My library @@ -111,7 +111,7 @@
{{ menuSection.title }}
- + {{ link.shortLabel }} diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index a824c69fe..6cfe26431 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss @@ -391,26 +391,17 @@ my-actor-avatar { } my-global-icon { - &[iconName=playlists] { + position: relative; + top: -1px; + + .playlist-icon { @include margin-right(16px); height: 24px; width: 24px; } - &[iconName=videos] { - position: relative; - right: -1px; - } - - &[iconName=channel] { - margin-top: -2px; - } - - &[iconName='sign-out'] { - position: relative; - right: -2px; - height: 20px; - width: 20px; + &.channel-icon { + top: -2px; } } diff --git a/client/src/assets/images/feather/log-out.svg b/client/src/assets/images/feather/log-out.svg index c9002c903..627b44493 100644 --- a/client/src/assets/images/feather/log-out.svg +++ b/client/src/assets/images/feather/log-out.svg @@ -1 +1 @@ - \ No newline at end of file + -- 2.41.0