diff options
Diffstat (limited to 'client/src/app/+search/search.component.ts')
-rw-r--r-- | client/src/app/+search/search.component.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/src/app/+search/search.component.ts b/client/src/app/+search/search.component.ts index 70116fab3..2be952e16 100644 --- a/client/src/app/+search/search.component.ts +++ b/client/src/app/+search/search.component.ts | |||
@@ -7,7 +7,6 @@ import { Video, VideoChannel } from '@app/shared/shared-main' | |||
7 | import { AdvancedSearch, SearchService } from '@app/shared/shared-search' | 7 | import { AdvancedSearch, SearchService } from '@app/shared/shared-search' |
8 | import { MiniatureDisplayOptions, VideoLinkType } from '@app/shared/shared-video-miniature' | 8 | import { MiniatureDisplayOptions, VideoLinkType } from '@app/shared/shared-video-miniature' |
9 | import { MetaService } from '@ngx-meta/core' | 9 | import { MetaService } from '@ngx-meta/core' |
10 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
11 | import { SearchTargetType, ServerConfig } from '@shared/models' | 10 | import { SearchTargetType, ServerConfig } from '@shared/models' |
12 | 11 | ||
13 | @Component({ | 12 | @Component({ |
@@ -52,7 +51,6 @@ export class SearchComponent implements OnInit, OnDestroy { | |||
52 | private lastSearchTarget: SearchTargetType | 51 | private lastSearchTarget: SearchTargetType |
53 | 52 | ||
54 | constructor ( | 53 | constructor ( |
55 | private i18n: I18n, | ||
56 | private route: ActivatedRoute, | 54 | private route: ActivatedRoute, |
57 | private router: Router, | 55 | private router: Router, |
58 | private metaService: MetaService, | 56 | private metaService: MetaService, |
@@ -170,8 +168,8 @@ export class SearchComponent implements OnInit, OnDestroy { | |||
170 | } | 168 | } |
171 | 169 | ||
172 | this.notifier.error( | 170 | this.notifier.error( |
173 | this.i18n('Search index is unavailable. Retrying with instance results instead.'), | 171 | $localize`Search index is unavailable. Retrying with instance results instead.`, |
174 | this.i18n('Search error') | 172 | $localize`Search error` |
175 | ) | 173 | ) |
176 | this.advancedSearch.searchTarget = 'local' | 174 | this.advancedSearch.searchTarget = 'local' |
177 | this.search() | 175 | this.search() |
@@ -229,7 +227,7 @@ export class SearchComponent implements OnInit, OnDestroy { | |||
229 | 227 | ||
230 | private updateTitle () { | 228 | private updateTitle () { |
231 | const suffix = this.currentSearch ? ' ' + this.currentSearch : '' | 229 | const suffix = this.currentSearch ? ' ' + this.currentSearch : '' |
232 | this.metaService.setTitle(this.i18n('Search') + suffix) | 230 | this.metaService.setTitle($localize`Search` + suffix) |
233 | } | 231 | } |
234 | 232 | ||
235 | private updateUrlFromAdvancedSearch () { | 233 | private updateUrlFromAdvancedSearch () { |