aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-11-19 17:36:20 +0100
committerChocobozzz <me@florianbigard.com>2018-11-20 10:44:48 +0100
commitf107470e50236e2a073f3f7dbab87c79e8364b56 (patch)
tree3190338753e120ecfb777d26917bbaf6ac10e032
parentd216b5387fb774d1355df3ace002f7be469bd450 (diff)
downloadPeerTube-f107470e50236e2a073f3f7dbab87c79e8364b56.tar.gz
PeerTube-f107470e50236e2a073f3f7dbab87c79e8364b56.tar.zst
PeerTube-f107470e50236e2a073f3f7dbab87c79e8364b56.zip
Fix search title
-rw-r--r--client/src/app/search/search.component.ts3
-rw-r--r--server/tests/utils/users/blocklist.ts3
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
3import { makeDeleteRequest, makePostBodyRequest } from '../requests/requests' 3import { makeGetRequest, makeDeleteRequest, makePostBodyRequest } from '../requests/requests'
4import { makeGetRequest } from '../requests/requests'
5 4
6function getAccountBlocklistByAccount ( 5function getAccountBlocklistByAccount (
7 url: string, 6 url: string,