aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+search
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-04 14:39:47 +0200
committerChocobozzz <me@florianbigard.com>2021-06-04 15:45:44 +0200
commitfc21ef5c62d845576a916414468b3a57370a57b2 (patch)
tree818102bc909210870f9a28692361f7b5cbe219de /client/src/app/+search
parent2989628b7913383b39ac34c7db8666a21f8e5037 (diff)
downloadPeerTube-fc21ef5c62d845576a916414468b3a57370a57b2.tar.gz
PeerTube-fc21ef5c62d845576a916414468b3a57370a57b2.tar.zst
PeerTube-fc21ef5c62d845576a916414468b3a57370a57b2.zip
Speed up plugins loading
Diffstat (limited to 'client/src/app/+search')
-rw-r--r--client/src/app/+search/search-filters.component.ts1
-rw-r--r--client/src/app/+search/search.component.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/client/src/app/+search/search-filters.component.ts b/client/src/app/+search/search-filters.component.ts
index f5f0c87ed..afa523b91 100644
--- a/client/src/app/+search/search-filters.component.ts
+++ b/client/src/app/+search/search-filters.component.ts
@@ -99,7 +99,6 @@ export class SearchFiltersComponent implements OnInit {
99 ngOnInit () { 99 ngOnInit () {
100 this.serverConfig = this.serverService.getHTMLConfig() 100 this.serverConfig = this.serverService.getHTMLConfig()
101 101
102
103 this.serverService.getVideoCategories().subscribe(categories => this.videoCategories = categories) 102 this.serverService.getVideoCategories().subscribe(categories => this.videoCategories = categories)
104 this.serverService.getVideoLicences().subscribe(licences => this.videoLicences = licences) 103 this.serverService.getVideoLicences().subscribe(licences => this.videoLicences = licences)
105 this.serverService.getVideoLanguages().subscribe(languages => this.videoLanguages = languages) 104 this.serverService.getVideoLanguages().subscribe(languages => this.videoLanguages = languages)
diff --git a/client/src/app/+search/search.component.ts b/client/src/app/+search/search.component.ts
index a31096bb2..a4ab7a5b1 100644
--- a/client/src/app/+search/search.component.ts
+++ b/client/src/app/+search/search.component.ts
@@ -287,7 +287,7 @@ export class SearchComponent implements OnInit, OnDestroy {
287 ) 287 )
288 } 288 }
289 289
290 private getDefaultSearchTarget(): SearchTargetType { 290 private getDefaultSearchTarget (): SearchTargetType {
291 const searchIndexConfig = this.serverConfig.search.searchIndex 291 const searchIndexConfig = this.serverConfig.search.searchIndex
292 292
293 if (searchIndexConfig.enabled && (searchIndexConfig.isDefaultSearch || searchIndexConfig.disableLocalSearch)) { 293 if (searchIndexConfig.enabled && (searchIndexConfig.isDefaultSearch || searchIndexConfig.disableLocalSearch)) {