aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/search
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-10-21 13:31:58 +0200
committerChocobozzz <me@florianbigard.com>2019-10-21 13:31:58 +0200
commitbaeb429d06d101f69c677fdb70c3da2eb9d3823d (patch)
treec5bf70c96cb4eaf4f1cc8c32e4df88c7f4a132bb /client/src/app/search
parentf1b38883922fd59b36f093e44a5091e090d20862 (diff)
downloadPeerTube-baeb429d06d101f69c677fdb70c3da2eb9d3823d.tar.gz
PeerTube-baeb429d06d101f69c677fdb70c3da2eb9d3823d.tar.zst
PeerTube-baeb429d06d101f69c677fdb70c3da2eb9d3823d.zip
Fix search with account video languages
Diffstat (limited to 'client/src/app/search')
-rw-r--r--client/src/app/search/advanced-search.model.ts1
-rw-r--r--client/src/app/search/search-filters.component.ts6
-rw-r--r--client/src/app/search/search.component.ts4
3 files changed, 5 insertions, 6 deletions
diff --git a/client/src/app/search/advanced-search.model.ts b/client/src/app/search/advanced-search.model.ts
index 5b713e145..e2a0253f4 100644
--- a/client/src/app/search/advanced-search.model.ts
+++ b/client/src/app/search/advanced-search.model.ts
@@ -139,6 +139,7 @@ export class AdvancedSearch {
139 139
140 private intoArray (value: any) { 140 private intoArray (value: any) {
141 if (!value) return undefined 141 if (!value) return undefined
142 if (Array.isArray(value)) return value
142 143
143 if (typeof value === 'string') return value.split(',') 144 if (typeof value === 'string') return value.split(',')
144 145
diff --git a/client/src/app/search/search-filters.component.ts b/client/src/app/search/search-filters.component.ts
index e13aa91bf..14a05b721 100644
--- a/client/src/app/search/search-filters.component.ts
+++ b/client/src/app/search/search-filters.component.ts
@@ -83,9 +83,9 @@ export class SearchFiltersComponent implements OnInit {
83 } 83 }
84 84
85 ngOnInit () { 85 ngOnInit () {
86 this.videoCategories = this.serverService.getVideoCategories() 86 this.serverService.videoCategoriesLoaded.subscribe(() => this.videoCategories = this.serverService.getVideoCategories())
87 this.videoLicences = this.serverService.getVideoLicences() 87 this.serverService.videoLicencesLoaded.subscribe(() => this.videoLicences = this.serverService.getVideoLicences())
88 this.videoLanguages = this.serverService.getVideoLanguages() 88 this.serverService.videoLanguagesLoaded.subscribe(() => this.videoLanguages = this.serverService.getVideoLanguages())
89 89
90 this.loadFromDurationRange() 90 this.loadFromDurationRange()
91 this.loadFromPublishedRange() 91 this.loadFromPublishedRange()
diff --git a/client/src/app/search/search.component.ts b/client/src/app/search/search.component.ts
index 5c4bb9379..202b97ab3 100644
--- a/client/src/app/search/search.component.ts
+++ b/client/src/app/search/search.component.ts
@@ -11,7 +11,6 @@ import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
11import { immutableAssign } from '@app/shared/misc/utils' 11import { immutableAssign } from '@app/shared/misc/utils'
12import { Video } from '@app/shared/video/video.model' 12import { Video } from '@app/shared/video/video.model'
13import { HooksService } from '@app/core/plugins/hooks.service' 13import { HooksService } from '@app/core/plugins/hooks.service'
14import { PluginService } from '@app/core/plugins/plugin.service'
15 14
16@Component({ 15@Component({
17 selector: 'my-search', 16 selector: 'my-search',
@@ -44,8 +43,7 @@ export class SearchComponent implements OnInit, OnDestroy {
44 private notifier: Notifier, 43 private notifier: Notifier,
45 private searchService: SearchService, 44 private searchService: SearchService,
46 private authService: AuthService, 45 private authService: AuthService,
47 private hooks: HooksService, 46 private hooks: HooksService
48 private pluginService: PluginService
49 ) { } 47 ) { }
50 48
51 get user () { 49 get user () {