vnZoneDeliveryDays hotfixes

This commit is contained in:
Juan Ferrer 2020-01-08 13:27:43 +01:00
parent 0b7aa7e65e
commit 5d69f50ac0
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1 @@
No service for the specified zone: No hay servicio para la zona especificada

View File

@ -8,8 +8,14 @@ class Controller extends Section {
}
onSubmit() {
this.$.data = null;
this.$http.get(`Zones/getEvents`, {params: this.$.params})
.then(res => this.$.data = res.data);
.then(res => {
let data = res.data;
this.$.data = data;
if (!data.events.length)
this.vnApp.showMessage(this.$t('No service for the specified zone'));
});
}
}