2262 Remove filter by id from searchbar
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
aa95a9f984
commit
9a0c9d3da2
|
@ -11,7 +11,7 @@
|
|||
data="$ctrl.items">
|
||||
</vn-crud-model>
|
||||
<vn-portal slot="topbar">
|
||||
<vn-searchbar
|
||||
<vn-searchbar vn-id="searchbar"
|
||||
auto-state="false"
|
||||
info="Search by item id or name"
|
||||
on-search="$ctrl.onSearch($params)">
|
||||
|
|
|
@ -206,7 +206,7 @@ class Controller extends Section {
|
|||
|
||||
removeItemId() {
|
||||
this.itemId = null;
|
||||
this.applyFilters();
|
||||
this.$.searchbar.doSearch({}, 'bar');
|
||||
}
|
||||
|
||||
removeItemName() {
|
||||
|
@ -324,7 +324,7 @@ class Controller extends Section {
|
|||
|
||||
onSearch(params) {
|
||||
if (!params) return;
|
||||
|
||||
console.log(params);
|
||||
this.itemId = null;
|
||||
this.itemName = null;
|
||||
|
||||
|
|
Loading…
Reference in New Issue