diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-31 18:12:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 08:43:01 +0200 |
commit | 989e526abf0c0dd7958deb630df009608561bb67 (patch) | |
tree | 5d948bf953a7006b1d6b8c34fb03da1df612a50f /client/src/app/videos/video-list/video-search.component.ts | |
parent | 1dd59831f80ff4d49f3b60c8c3b2aabfb1512eeb (diff) | |
download | PeerTube-989e526abf0c0dd7958deb630df009608561bb67.tar.gz PeerTube-989e526abf0c0dd7958deb630df009608561bb67.tar.zst PeerTube-989e526abf0c0dd7958deb630df009608561bb67.zip |
Prepare i18n files
Diffstat (limited to 'client/src/app/videos/video-list/video-search.component.ts')
-rw-r--r-- | client/src/app/videos/video-list/video-search.component.ts | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/client/src/app/videos/video-list/video-search.component.ts b/client/src/app/videos/video-list/video-search.component.ts index aab896d84..35566a7bd 100644 --- a/client/src/app/videos/video-list/video-search.component.ts +++ b/client/src/app/videos/video-list/video-search.component.ts | |||
@@ -8,6 +8,7 @@ import { Subscription } from 'rxjs' | |||
8 | import { AuthService } from '../../core/auth' | 8 | import { AuthService } from '../../core/auth' |
9 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' | 9 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' |
10 | import { VideoService } from '../../shared/video/video.service' | 10 | import { VideoService } from '../../shared/video/video.service' |
11 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
11 | 12 | ||
12 | @Component({ | 13 | @Component({ |
13 | selector: 'my-videos-search', | 14 | selector: 'my-videos-search', |
@@ -15,7 +16,7 @@ import { VideoService } from '../../shared/video/video.service' | |||
15 | templateUrl: '../../shared/video/abstract-video-list.html' | 16 | templateUrl: '../../shared/video/abstract-video-list.html' |
16 | }) | 17 | }) |
17 | export class VideoSearchComponent extends AbstractVideoList implements OnInit, OnDestroy { | 18 | export class VideoSearchComponent extends AbstractVideoList implements OnInit, OnDestroy { |
18 | titlePage = 'Search' | 19 | titlePage: string |
19 | currentRoute = '/videos/search' | 20 | currentRoute = '/videos/search' |
20 | loadOnInit = false | 21 | loadOnInit = false |
21 | 22 | ||
@@ -24,15 +25,19 @@ export class VideoSearchComponent extends AbstractVideoList implements OnInit, O | |||
24 | } | 25 | } |
25 | private subActivatedRoute: Subscription | 26 | private subActivatedRoute: Subscription |
26 | 27 | ||
27 | constructor (protected router: Router, | 28 | constructor ( |
28 | protected route: ActivatedRoute, | 29 | protected router: Router, |
29 | protected notificationsService: NotificationsService, | 30 | protected route: ActivatedRoute, |
30 | protected authService: AuthService, | 31 | protected notificationsService: NotificationsService, |
31 | protected location: Location, | 32 | protected authService: AuthService, |
32 | private videoService: VideoService, | 33 | protected location: Location, |
33 | private redirectService: RedirectService | 34 | private videoService: VideoService, |
35 | private redirectService: RedirectService, | ||
36 | private i18n: I18n | ||
34 | ) { | 37 | ) { |
35 | super() | 38 | super() |
39 | |||
40 | this.titlePage = i18n('Search') | ||
36 | } | 41 | } |
37 | 42 | ||
38 | ngOnInit () { | 43 | ngOnInit () { |