diff options
author | Chocobozzz <me@florianbigard.com> | 2018-11-19 17:36:20 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-11-20 10:44:48 +0100 |
commit | f107470e50236e2a073f3f7dbab87c79e8364b56 (patch) | |
tree | 3190338753e120ecfb777d26917bbaf6ac10e032 | |
parent | d216b5387fb774d1355df3ace002f7be469bd450 (diff) | |
download | PeerTube-f107470e50236e2a073f3f7dbab87c79e8364b56.tar.gz PeerTube-f107470e50236e2a073f3f7dbab87c79e8364b56.tar.zst PeerTube-f107470e50236e2a073f3f7dbab87c79e8364b56.zip |
Fix search title
-rw-r--r-- | client/src/app/search/search.component.ts | 3 | ||||
-rw-r--r-- | server/tests/utils/users/blocklist.ts | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/search/search.component.ts b/client/src/app/search/search.component.ts index ecffcafc1..3d17e6d96 100644 --- a/client/src/app/search/search.component.ts +++ b/client/src/app/search/search.component.ts | |||
@@ -146,7 +146,8 @@ export class SearchComponent implements OnInit, OnDestroy { | |||
146 | } | 146 | } |
147 | 147 | ||
148 | private updateTitle () { | 148 | private updateTitle () { |
149 | this.metaService.setTitle(this.i18n('Search') + ' ' + this.currentSearch) | 149 | const suffix = this.currentSearch ? ' ' + this.currentSearch : '' |
150 | this.metaService.setTitle(this.i18n('Search') + suffix) | ||
150 | } | 151 | } |
151 | 152 | ||
152 | private updateUrlFromAdvancedSearch () { | 153 | private updateUrlFromAdvancedSearch () { |
diff --git a/server/tests/utils/users/blocklist.ts b/server/tests/utils/users/blocklist.ts index 0ead5e5f6..5feb84179 100644 --- a/server/tests/utils/users/blocklist.ts +++ b/server/tests/utils/users/blocklist.ts | |||
@@ -1,7 +1,6 @@ | |||
1 | /* tslint:disable:no-unused-expression */ | 1 | /* tslint:disable:no-unused-expression */ |
2 | 2 | ||
3 | import { makeDeleteRequest, makePostBodyRequest } from '../requests/requests' | 3 | import { makeGetRequest, makeDeleteRequest, makePostBodyRequest } from '../requests/requests' |
4 | import { makeGetRequest } from '../requests/requests' | ||
5 | 4 | ||
6 | function getAccountBlocklistByAccount ( | 5 | function getAccountBlocklistByAccount ( |
7 | url: string, | 6 | url: string, |