aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/header/header.component.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-01-10 19:50:48 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-01-21 10:08:10 +0100
commit7738273b808f0ff1494f18c4cc13553505e6ac6d (patch)
treee751a2282ffb9d5f1f4e556ca865e06ed4426710 /client/src/app/header/header.component.ts
parentaa0f19635ae4632e286de1599fc24f95f32a108c (diff)
downloadPeerTube-7738273b808f0ff1494f18c4cc13553505e6ac6d.tar.gz
PeerTube-7738273b808f0ff1494f18c4cc13553505e6ac6d.tar.zst
PeerTube-7738273b808f0ff1494f18c4cc13553505e6ac6d.zip
Accessibility fixes for #2149
Diffstat (limited to 'client/src/app/header/header.component.ts')
-rw-r--r--client/src/app/header/header.component.ts7
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'
5import { AuthService, ServerService, Notifier } from '@app/core' 5import { AuthService, ServerService, Notifier } from '@app/core'
6import { of } from 'rxjs' 6import { of } from 'rxjs'
7import { ServerConfig } from '@shared/models' 7import { ServerConfig } from '@shared/models'
8import { 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
15export class HeaderComponent implements OnInit { 16export 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),