Merge pull request 'fix(searchbar): wasn't applying a search by postcode on page refresh' (#719) from 3072-fix_zone_location into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #719
Reviewed-by: Carlos Jimenez Ruiz <carlosjr@verdnatura.es>
This commit is contained in:
Carlos Jimenez Ruiz 2021-08-31 11:04:11 +00:00
commit 72cd9f398f
2 changed files with 1 additions and 5 deletions

View File

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

View File

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