feat(cover-search): trigger search automatically when form is valid after autofill (#2035)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
@@ -54,6 +54,10 @@ export class CoverSearchComponent implements OnInit {
|
|||||||
title: book.metadata?.title || '',
|
title: book.metadata?.title || '',
|
||||||
author: book.metadata?.authors && book.metadata?.authors.length > 0 ? book.metadata?.authors[0] : ''
|
author: book.metadata?.authors && book.metadata?.authors.length > 0 ? book.metadata?.authors[0] : ''
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (this.searchForm.valid) {
|
||||||
|
this.onSearch();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user