aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts/account-search
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-26 13:20:37 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-03-31 09:05:51 +0200
commit67264e060b6068399dae9a67abae035a73b84af1 (patch)
treedabb735a530c9389c941f7ff1d44fa4b5f6db03e /client/src/app/+accounts/account-search
parent60c35932f6a14cfe83bb0e54407427cce70171ea (diff)
downloadPeerTube-67264e060b6068399dae9a67abae035a73b84af1.tar.gz
PeerTube-67264e060b6068399dae9a67abae035a73b84af1.tar.zst
PeerTube-67264e060b6068399dae9a67abae035a73b84af1.zip
Redesign account page
Diffstat (limited to 'client/src/app/+accounts/account-search')
-rw-r--r--client/src/app/+accounts/account-search/account-search.component.ts7
1 files changed, 6 insertions, 1 deletions
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,
64 } 64 }
65 65
66 updateSearch (value: string) { 66 updateSearch (value: string) {
67 if (value === '') this.router.navigate(['../videos'], { relativeTo: this.route })
68 this.search = value 67 this.search = value
69 68
69 if (!this.search) {
70 this.router.navigate([ '../videos' ], { relativeTo: this.route })
71 return
72 }
73
74 this.videos = []
70 this.reloadVideos() 75 this.reloadVideos()
71 } 76 }
72 77