From 641f98b2eeb155d2a93d76c9f83ad9eafa3aac1e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Jun 2016 18:18:29 +0200 Subject: Don't make a search when the field is changed and the value is empty --- client/src/app/shared/search/search.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/search/search.component.ts') 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() { -- cgit v1.2.3