diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-24 11:40:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-24 14:04:05 +0200 |
commit | 4278710d5b48546709720fac46657b84bba52a18 (patch) | |
tree | 625adb1ca2701b6b2dd02044a8fbe68eac2dda18 /client/src/app/search/search.component.ts | |
parent | d411245096b7c9ec06e6fa2ceff7aa7b0fc0c3b7 (diff) | |
download | PeerTube-4278710d5b48546709720fac46657b84bba52a18.tar.gz PeerTube-4278710d5b48546709720fac46657b84bba52a18.tar.zst PeerTube-4278710d5b48546709720fac46657b84bba52a18.zip |
Add ability to click on category/licence/language/tags in watch page
Diffstat (limited to 'client/src/app/search/search.component.ts')
-rw-r--r-- | client/src/app/search/search.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/search/search.component.ts b/client/src/app/search/search.component.ts index 8860b9268..8d615fd05 100644 --- a/client/src/app/search/search.component.ts +++ b/client/src/app/search/search.component.ts | |||
@@ -44,7 +44,8 @@ export class SearchComponent implements OnInit, OnDestroy { | |||
44 | queryParams => { | 44 | queryParams => { |
45 | const querySearch = queryParams['search'] | 45 | const querySearch = queryParams['search'] |
46 | 46 | ||
47 | if (!querySearch) return this.redirectService.redirectToHomepage() | 47 | // New empty search |
48 | if (this.currentSearch && !querySearch) return this.redirectService.redirectToHomepage() | ||
48 | 49 | ||
49 | // Search updated, reset filters | 50 | // Search updated, reset filters |
50 | if (this.currentSearch !== querySearch) { | 51 | if (this.currentSearch !== querySearch) { |