From 13adf228d0cc48995cf70c0a782a1d717873f6e0 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 7 Jan 2020 12:12:39 +0100 Subject: [PATCH] Add button in subscriptions to go to subscriptions list --- .../app/shared/video/abstract-video-list.html | 10 ++++++++- .../app/shared/video/abstract-video-list.scss | 22 ++++++++++++++----- .../app/shared/video/abstract-video-list.ts | 6 +++++ .../video-user-subscriptions.component.ts | 5 +++++ 4 files changed, 36 insertions(+), 7 deletions(-) diff --git a/client/src/app/shared/video/abstract-video-list.html b/client/src/app/shared/video/abstract-video-list.html index 13aedcc74..3abc4312f 100644 --- a/client/src/app/shared/video/abstract-video-list.html +++ b/client/src/app/shared/video/abstract-video-list.html @@ -4,9 +4,17 @@
{{ titlePage }}
+ - +
+ + + +
() protected serverConfig: ServerConfig diff --git a/client/src/app/videos/video-list/video-user-subscriptions.component.ts b/client/src/app/videos/video-list/video-user-subscriptions.component.ts index b36c85766..0cd67db29 100644 --- a/client/src/app/videos/video-list/video-user-subscriptions.component.ts +++ b/client/src/app/videos/video-list/video-user-subscriptions.component.ts @@ -36,6 +36,11 @@ export class VideoUserSubscriptionsComponent extends AbstractVideoList implement super() this.titlePage = i18n('Videos from your subscriptions') + this.actions.push({ + routerLink: '/my-account/subscriptions', + label: i18n('Subscriptions'), + iconName: 'cog' + }) } ngOnInit () { -- 2.25.1