diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-26 01:53:13 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-28 15:55:34 +0100 |
commit | 3da68f0a781ebd893521e2e6fa200280c92ae815 (patch) | |
tree | 11bddf841118703c725a96851318603407fd581d /client/src/app/shared/shared-video-miniature/video-list-header.component.ts | |
parent | 28eeb811c40325a28208231324f66f4032e5cf67 (diff) | |
download | PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.tar.gz PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.tar.zst PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.zip |
add default trending page choice, revert comments count for hot strategy
Diffstat (limited to 'client/src/app/shared/shared-video-miniature/video-list-header.component.ts')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/video-list-header.component.ts | 12 |
1 files changed, 4 insertions, 8 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 a07248b96..67bbf7d7a 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,17 +1,13 @@ | |||
1 | import { Component, Inject } from '@angular/core' | 1 | import { Component, Inject, ViewEncapsulation } from '@angular/core' |
2 | 2 | ||
3 | export abstract class GenericHeaderComponent { | 3 | export abstract class GenericHeaderComponent { |
4 | constructor (@Inject('data') public data: any) {} | 4 | constructor (@Inject('data') public data: any) {} |
5 | } | 5 | } |
6 | 6 | ||
7 | @Component({ | 7 | @Component({ |
8 | selector: 'h1', | 8 | selector: 'my-video-list-header', |
9 | host: { 'class': 'title-page title-page-single' }, | 9 | encapsulation: ViewEncapsulation.None, |
10 | template: ` | 10 | templateUrl: './video-list-header.component.html' |
11 | <div placement="bottom" [ngbTooltip]="data.titleTooltip" container="body"> | ||
12 | {{ data.titlePage }} | ||
13 | </div> | ||
14 | ` | ||
15 | }) | 11 | }) |
16 | export class VideoListHeaderComponent extends GenericHeaderComponent { | 12 | export class VideoListHeaderComponent extends GenericHeaderComponent { |
17 | constructor (@Inject('data') public data: any) { | 13 | constructor (@Inject('data') public data: any) { |