fix(searchbar): wasn't applying a search by postcode on page refresh
gitea/salix/pipeline/head This commit looks good Details

Refs: #3072
This commit is contained in:
Joan Sanchez 2021-08-31 11:41:42 +02:00
parent 1061450385
commit 0de6af5633
2 changed files with 1 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<vn-crud-model
vn-id="model"
url="Zones/{{$ctrl.$params.id}}/getLeaves"
filter="::$ctrl.filter">
filter="$ctrl.filter">
</vn-crud-model>
<vn-portal slot="topbar">
<vn-searchbar

View File

@ -3,10 +3,6 @@ import Section from 'salix/components/section';
import './style.scss';
class Controller extends Section {
$postLink() {
this.onSearch();
}
onSearch(params) {
this.$.model.applyFilter({}, params).then(() => {
const data = this.$.model.data;