vnZoneDeliveryDays hotfixes
This commit is contained in:
parent
0b7aa7e65e
commit
5d69f50ac0
|
@ -0,0 +1 @@
|
|||
No service for the specified zone: No hay servicio para la zona especificada
|
|
@ -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'));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue