From: Chocobozzz <florian.bigard@gmail.com> Date: Fri, 10 Jun 2016 16:18:29 +0000 (+0200) Subject: Don't make a search when the field is changed and the value is empty X-Git-Tag: v0.0.1-alpha~856 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=641f98b2eeb155d2a93d76c9f83ad9eafa3aac1e;p=oweals%2Fpeertube.git Don't make a search when the field is changed and the value is empty --- diff --git a/client/src/app/shared/search/search.component.ts b/client/src/app/shared/search/search.component.ts index ed1ce807a..2f89d83bf 100644 --- a/client/src/app/shared/search/search.component.ts +++ b/client/src/app/shared/search/search.component.ts @@ -51,7 +51,10 @@ export class SearchComponent implements OnInit { $event.stopPropagation(); this.searchCriterias.field = choice; - this.doSearch(); + + if (this.searchCriterias.value !== '') { + this.doSearch(); + } } doSearch() {