aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/header
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-09 16:39:45 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-06-10 14:02:41 +0200
commit3b0bd70aa05ab82fa30fe67ed4899d44652c703a (patch)
tree662655e40f0a4263f1d3ab457d9970c344e8bbb0 /client/src/app/header
parent7c87746e4b336e547b1917f274c9a0bdc4d1d3df (diff)
downloadPeerTube-3b0bd70aa05ab82fa30fe67ed4899d44652c703a.tar.gz
PeerTube-3b0bd70aa05ab82fa30fe67ed4899d44652c703a.tar.zst
PeerTube-3b0bd70aa05ab82fa30fe67ed4899d44652c703a.zip
Add search target check params
Diffstat (limited to 'client/src/app/header')
-rw-r--r--client/src/app/header/search-typeahead.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/header/search-typeahead.component.ts b/client/src/app/header/search-typeahead.component.ts
index 6c8b8efee..7d04e0f6d 100644
--- a/client/src/app/header/search-typeahead.component.ts
+++ b/client/src/app/header/search-typeahead.component.ts
@@ -112,10 +112,10 @@ export class SearchTypeaheadComponent implements OnInit, AfterViewInit, AfterVie
112 const searchIndexConfig = this.serverConfig.search.searchIndex 112 const searchIndexConfig = this.serverConfig.search.searchIndex
113 113
114 if (!this.activeSearch) { 114 if (!this.activeSearch) {
115 if (searchIndexConfig.enabled && searchIndexConfig.isDefaultSearch) { 115 if (searchIndexConfig.enabled && (searchIndexConfig.isDefaultSearch || searchIndexConfig.disableLocalSearch)) {
116 this.activeSearch = 'search-instance'
117 } else {
118 this.activeSearch = 'search-index' 116 this.activeSearch = 'search-index'
117 } else {
118 this.activeSearch = 'search-instance'
119 } 119 }
120 } 120 }
121 121