If no search results, dialog value entered in search field

This commit is contained in:
2022-02-07 12:47:51 +01:00
parent f578bd2fe1
commit 6186b14b16
3 changed files with 7 additions and 2 deletions

View File

@ -19,6 +19,8 @@ export class Search {
}
if (items.length > 0) {
this.dial((<HTMLElement>items[0]).dataset.tapiNumber)
} else {
this.dial((<HTMLInputElement>document.getElementById('tapiSearchInput')).value)
}
return false