mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Merged in development (pull request #58)
[HIMA-11] autocomplete disabled flag
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user