show errors when search failed;
This commit is contained in:
@@ -96,6 +96,10 @@ export default {
|
||||
tableInst.rowClass = "table-row-search";
|
||||
tableInst.create();
|
||||
}
|
||||
if (data.error) {
|
||||
helper.resetSearch(vm);
|
||||
helper.error(data.error);
|
||||
}
|
||||
})
|
||||
.send();
|
||||
},
|
||||
|
||||
@@ -248,7 +248,11 @@ const helper = {
|
||||
}
|
||||
},
|
||||
t: function (str) {
|
||||
return t("ncdownloader", str);
|
||||
return t("ncdownloader", str);
|
||||
},
|
||||
resetSearch: function (vm) {
|
||||
vm.$data.loading = 0;
|
||||
contentTable.getInstance([], []).clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user