Merged in development (pull request #58)

[HIMA-11] autocomplete disabled flag
This commit is contained in:
Peter Skrlj
2019-02-14 08:32:53 +00:00

View File

@@ -62,7 +62,7 @@ export class TextSearchComponent implements OnInit, AfterViewInit {
autocompleteResults: Observable<string>;
processes: Process[];
error = '';
autoCompleteEnabled = false;
@Input()
searchParams = '';
@@ -210,7 +210,7 @@ export class TextSearchComponent implements OnInit, AfterViewInit {
}
autocomplete(search: string) {
if (search.length > 0) {
if (search.length > 0 && this.autoCompleteEnabled) {
if (this.timer) {
clearTimeout(this.timer);
}