aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
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 /client
parentd216b5387fb774d1355df3ace002f7be469bd450 (diff)
downloadPeerTube-f107470e50236e2a073f3f7dbab87c79e8364b56.tar.gz
PeerTube-f107470e50236e2a073f3f7dbab87c79e8364b56.tar.zst
PeerTube-f107470e50236e2a073f3f7dbab87c79e8364b56.zip
Fix search title
Diffstat (limited to 'client')
-rw-r--r--client/src/app/search/search.component.ts3
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 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 () {