diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-27 17:15:21 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-28 15:55:34 +0100 |
commit | ba5d4a849c7d7ba05f093480ae12286c4af61556 (patch) | |
tree | 704a80b96d3b437ad12feacaaaf58a96b97282a1 /client/src/app/shared/shared-video-miniature | |
parent | 3da68f0a781ebd893521e2e6fa200280c92ae815 (diff) | |
download | PeerTube-ba5d4a849c7d7ba05f093480ae12286c4af61556.tar.gz PeerTube-ba5d4a849c7d7ba05f093480ae12286c4af61556.tar.zst PeerTube-ba5d4a849c7d7ba05f093480ae12286c4af61556.zip |
move from trending routes to alg param
Diffstat (limited to 'client/src/app/shared/shared-video-miniature')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/video-list-header.component.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-video-miniature/video-list-header.component.ts b/client/src/app/shared/shared-video-miniature/video-list-header.component.ts index 67bbf7d7a..08a961be1 100644 --- a/client/src/app/shared/shared-video-miniature/video-list-header.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-list-header.component.ts | |||
@@ -1,16 +1,22 @@ | |||
1 | import { Component, Inject, ViewEncapsulation } from '@angular/core' | 1 | import { Component, Inject, ViewEncapsulation } from '@angular/core' |
2 | 2 | ||
3 | export interface GenericHeaderData { | ||
4 | titlePage: string | ||
5 | titleTooltip?: string | ||
6 | } | ||
7 | |||
3 | export abstract class GenericHeaderComponent { | 8 | export abstract class GenericHeaderComponent { |
4 | constructor (@Inject('data') public data: any) {} | 9 | constructor (@Inject('data') public data: GenericHeaderData) {} |
5 | } | 10 | } |
6 | 11 | ||
7 | @Component({ | 12 | @Component({ |
8 | selector: 'my-video-list-header', | 13 | selector: 'my-video-list-header', |
14 | // tslint:disable-next-line:use-component-view-encapsulation | ||
9 | encapsulation: ViewEncapsulation.None, | 15 | encapsulation: ViewEncapsulation.None, |
10 | templateUrl: './video-list-header.component.html' | 16 | templateUrl: './video-list-header.component.html' |
11 | }) | 17 | }) |
12 | export class VideoListHeaderComponent extends GenericHeaderComponent { | 18 | export class VideoListHeaderComponent extends GenericHeaderComponent { |
13 | constructor (@Inject('data') public data: any) { | 19 | constructor (@Inject('data') public data: GenericHeaderData) { |
14 | super(data) | 20 | super(data) |
15 | } | 21 | } |
16 | } | 22 | } |