X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Baccounts%2Faccount-search%2Faccount-search.component.ts;h=f54ab846a5a39a2335b54b6a259684c95809b692;hb=2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8;hp=dda4bf0c76544351f1982e47698f53bcefe2af80;hpb=07f81d9deedf4921b8518c2d2b16043167b4c5d5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+accounts/account-search/account-search.component.ts b/client/src/app/+accounts/account-search/account-search.component.ts index dda4bf0c7..f54ab846a 100644 --- a/client/src/app/+accounts/account-search/account-search.component.ts +++ b/client/src/app/+accounts/account-search/account-search.component.ts @@ -64,9 +64,14 @@ export class AccountSearchComponent extends AbstractVideoList implements OnInit, } updateSearch (value: string) { - if (value === '') this.router.navigate(['../videos'], { relativeTo: this.route }) this.search = value + if (!this.search) { + this.router.navigate([ '../videos' ], { relativeTo: this.route }) + return + } + + this.videos = [] this.reloadVideos() }