mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-04-24 10:50:39 +08:00
implemented updating search result on every query (#92)
This commit is contained in:
@@ -190,8 +190,8 @@ export default class SearchDialog extends HasTask {
|
||||
const response = await api.getSearchResults(responseId);
|
||||
const isStopped = response.status === "Stopped";
|
||||
|
||||
this.grid.searchItems.splice(-1, 0, ...response.results.slice(this.grid.searchItems.length))
|
||||
if (isStopped) {
|
||||
this.grid.searchItems = this.grid.searchItems.concat(response.results);
|
||||
this.loading = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user