diff options
Diffstat (limited to 'client/src/app/header/header.component.ts')
-rw-r--r-- | client/src/app/header/header.component.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/header/header.component.ts b/client/src/app/header/header.component.ts index 580535669..5fd122930 100644 --- a/client/src/app/header/header.component.ts +++ b/client/src/app/header/header.component.ts | |||
@@ -5,6 +5,7 @@ import { getParameterByName } from '../shared/misc/utils' | |||
5 | import { AuthService, ServerService, Notifier } from '@app/core' | 5 | import { AuthService, ServerService, Notifier } from '@app/core' |
6 | import { of } from 'rxjs' | 6 | import { of } from 'rxjs' |
7 | import { ServerConfig } from '@shared/models' | 7 | import { ServerConfig } from '@shared/models' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
8 | 9 | ||
9 | @Component({ | 10 | @Component({ |
10 | selector: 'my-header', | 11 | selector: 'my-header', |
@@ -14,6 +15,7 @@ import { ServerConfig } from '@shared/models' | |||
14 | 15 | ||
15 | export class HeaderComponent implements OnInit { | 16 | export class HeaderComponent implements OnInit { |
16 | searchValue = '' | 17 | searchValue = '' |
18 | ariaLabelTextForSearch = '' | ||
17 | 19 | ||
18 | private serverConfig: ServerConfig | 20 | private serverConfig: ServerConfig |
19 | 21 | ||
@@ -23,10 +25,13 @@ export class HeaderComponent implements OnInit { | |||
23 | private auth: AuthService, | 25 | private auth: AuthService, |
24 | private serverService: ServerService, | 26 | private serverService: ServerService, |
25 | private authService: AuthService, | 27 | private authService: AuthService, |
26 | private notifier: Notifier | 28 | private notifier: Notifier, |
29 | private i18n: I18n | ||
27 | ) {} | 30 | ) {} |
28 | 31 | ||
29 | ngOnInit () { | 32 | ngOnInit () { |
33 | this.ariaLabelTextForSearch = this.i18n('Search videos, channels') | ||
34 | |||
30 | this.router.events | 35 | this.router.events |
31 | .pipe( | 36 | .pipe( |
32 | filter(e => e instanceof NavigationEnd), | 37 | filter(e => e instanceof NavigationEnd), |