2262 Remove filter by id from searchbar
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-05-21 14:18:24 +02:00
parent aa95a9f984
commit 9a0c9d3da2
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
data="$ctrl.items"> data="$ctrl.items">
</vn-crud-model> </vn-crud-model>
<vn-portal slot="topbar"> <vn-portal slot="topbar">
<vn-searchbar <vn-searchbar vn-id="searchbar"
auto-state="false" auto-state="false"
info="Search by item id or name" info="Search by item id or name"
on-search="$ctrl.onSearch($params)"> on-search="$ctrl.onSearch($params)">

View File

@ -206,7 +206,7 @@ class Controller extends Section {
removeItemId() { removeItemId() {
this.itemId = null; this.itemId = null;
this.applyFilters(); this.$.searchbar.doSearch({}, 'bar');
} }
removeItemName() { removeItemName() {
@ -324,7 +324,7 @@ class Controller extends Section {
onSearch(params) { onSearch(params) {
if (!params) return; if (!params) return;
console.log(params);
this.itemId = null; this.itemId = null;
this.itemName = null; this.itemName = null;