From a7e6050250b6d1a6fdb231685088f551d4db3cb4 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 17 Jul 2023 08:03:50 +0200 Subject: [PATCH] refs #5888 fix: refresh data --- front/core/components/address-autocomplete/index.html | 7 +++---- front/core/components/address-autocomplete/index.js | 7 +++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/front/core/components/address-autocomplete/index.html b/front/core/components/address-autocomplete/index.html index bbe2ded1c..7b34aee89 100755 --- a/front/core/components/address-autocomplete/index.html +++ b/front/core/components/address-autocomplete/index.html @@ -1,10 +1,10 @@ -{{$ctrl.postCode}} - {{::name}} + {{name}} diff --git a/front/core/components/address-autocomplete/index.js b/front/core/components/address-autocomplete/index.js index b68fb5ce2..43893b007 100755 --- a/front/core/components/address-autocomplete/index.js +++ b/front/core/components/address-autocomplete/index.js @@ -57,6 +57,13 @@ export default class AddressAutocomplete extends Component { this.country = selection.countryFk; this.countryName = selection.countryName; } + + async onResponse(response) { + await this.$.getLocations.refresh(); + this.postCode = response.code; + // :TODO refesh displayed + this.$.location.refreshDisplayed(); + } } ngModule.vnComponent('vnAddressAutocomplete', {