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">
|
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)">
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue