forked from rosa/hakurei
cmd/pkgserver: better no results handling
This commit is contained in:
@@ -214,6 +214,10 @@ class State {
|
|||||||
}
|
}
|
||||||
STATE.maxTotal = res.count!
|
STATE.maxTotal = res.count!
|
||||||
STATE.updateRange()
|
STATE.updateRange()
|
||||||
|
if(res.count! < 1) {
|
||||||
|
alert("no results found!")
|
||||||
|
exitSearch()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
getRequest(this.getEntriesPerPage(), this.getEntryIndex(), this.getSortOrder())
|
getRequest(this.getEntriesPerPage(), this.getEntryIndex(), this.getSortOrder())
|
||||||
|
|||||||
Reference in New Issue
Block a user