diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-19 09:24:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-25 11:24:11 +0200 |
commit | dd24f1bb0a4b252e5342b251ba36853364da7b8e (patch) | |
tree | 41a9506d07413f056fb90425705e258f96fdc77d /client/src/app/shared/shared-forms/advanced-input-filter.component.ts | |
parent | 2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8 (diff) | |
download | PeerTube-dd24f1bb0a4b252e5342b251ba36853364da7b8e.tar.gz PeerTube-dd24f1bb0a4b252e5342b251ba36853364da7b8e.tar.zst PeerTube-dd24f1bb0a4b252e5342b251ba36853364da7b8e.zip |
Add video filters to common video pages
Diffstat (limited to 'client/src/app/shared/shared-forms/advanced-input-filter.component.ts')
-rw-r--r-- | client/src/app/shared/shared-forms/advanced-input-filter.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-forms/advanced-input-filter.component.ts b/client/src/app/shared/shared-forms/advanced-input-filter.component.ts index c11f1ad1d..72cd6d460 100644 --- a/client/src/app/shared/shared-forms/advanced-input-filter.component.ts +++ b/client/src/app/shared/shared-forms/advanced-input-filter.component.ts | |||
@@ -18,6 +18,7 @@ const logger = debug('peertube:AdvancedInputFilterComponent') | |||
18 | }) | 18 | }) |
19 | export class AdvancedInputFilterComponent implements OnInit, AfterViewInit { | 19 | export class AdvancedInputFilterComponent implements OnInit, AfterViewInit { |
20 | @Input() filters: AdvancedInputFilter[] = [] | 20 | @Input() filters: AdvancedInputFilter[] = [] |
21 | @Input() emitOnInit = true | ||
21 | 22 | ||
22 | @Output() search = new EventEmitter<string>() | 23 | @Output() search = new EventEmitter<string>() |
23 | 24 | ||
@@ -42,7 +43,7 @@ export class AdvancedInputFilterComponent implements OnInit, AfterViewInit { | |||
42 | this.viewInitialized = true | 43 | this.viewInitialized = true |
43 | 44 | ||
44 | // Init after view init to not send an event too early | 45 | // Init after view init to not send an event too early |
45 | if (this.emitSearchAfterViewInit) this.emitSearch() | 46 | if (this.emitOnInit && this.emitSearchAfterViewInit) this.emitSearch() |
46 | } | 47 | } |
47 | 48 | ||
48 | onInputSearch (event: Event) { | 49 | onInputSearch (event: Event) { |