diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-18 14:33:07 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-18 14:33:07 +0100 |
commit | 71e75ef27e8f993eaafc73896ac6f22fe91df64a (patch) | |
tree | d5e309d62580e72521f4ddad4f683b12a5d0a067 /client/src/app | |
parent | 757ffdfe901fddc34c311e3b45689e09a4055aa5 (diff) | |
download | PeerTube-71e75ef27e8f993eaafc73896ac6f22fe91df64a.tar.gz PeerTube-71e75ef27e8f993eaafc73896ac6f22fe91df64a.tar.zst PeerTube-71e75ef27e8f993eaafc73896ac6f22fe91df64a.zip |
Fix search parameter initialisation for search-typeahead
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/header/search-typeahead.component.ts | 6 | ||||
-rw-r--r-- | client/src/app/shared/misc/list-overflow.component.scss | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/header/search-typeahead.component.ts b/client/src/app/header/search-typeahead.component.ts index 372601fa8..396a875c8 100644 --- a/client/src/app/header/search-typeahead.component.ts +++ b/client/src/app/header/search-typeahead.component.ts | |||
@@ -35,9 +35,9 @@ export class SearchTypeaheadComponent implements OnInit, OnDestroy { | |||
35 | ) {} | 35 | ) {} |
36 | 36 | ||
37 | ngOnInit () { | 37 | ngOnInit () { |
38 | const query = this.route.snapshot.queryParams | 38 | this.route.queryParams |
39 | if (query['search']) this.search = query['search'] | 39 | .pipe(first(params => params.search !== undefined && params.search !== null)) |
40 | 40 | .subscribe(params => this.search = params.search) | |
41 | this.serverService.getConfig() | 41 | this.serverService.getConfig() |
42 | .subscribe(config => this.serverConfig = config) | 42 | .subscribe(config => this.serverConfig = config) |
43 | } | 43 | } |
diff --git a/client/src/app/shared/misc/list-overflow.component.scss b/client/src/app/shared/misc/list-overflow.component.scss index e26100aca..1e5fe4c10 100644 --- a/client/src/app/shared/misc/list-overflow.component.scss +++ b/client/src/app/shared/misc/list-overflow.component.scss | |||
@@ -10,7 +10,7 @@ | |||
10 | 10 | ||
11 | .list-overflow-menu { | 11 | .list-overflow-menu { |
12 | position: absolute; | 12 | position: absolute; |
13 | right: 0; | 13 | right: 25px; |
14 | } | 14 | } |
15 | 15 | ||
16 | button { | 16 | button { |