Fix search title

This commit is contained in:
Chocobozzz 2018-11-19 17:36:20 +01:00
parent d216b5387f
commit f107470e50
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,8 @@ export class SearchComponent implements OnInit, OnDestroy {
}
private updateTitle () {
this.metaService.setTitle(this.i18n('Search') + ' ' + this.currentSearch)
const suffix = this.currentSearch ? ' ' + this.currentSearch : ''
this.metaService.setTitle(this.i18n('Search') + suffix)
}
private updateUrlFromAdvancedSearch () {

View File

@ -1,7 +1,6 @@
/* tslint:disable:no-unused-expression */
import { makeDeleteRequest, makePostBodyRequest } from '../requests/requests'
import { makeGetRequest } from '../requests/requests'
import { makeGetRequest, makeDeleteRequest, makePostBodyRequest } from '../requests/requests'
function getAccountBlocklistByAccount (
url: string,