Correctly terminology
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ea1d6c14e0
commit
766617f871
|
@ -7,17 +7,20 @@ class Controller extends Section {
|
|||
super($element, $scope);
|
||||
this.$location = $location;
|
||||
}
|
||||
|
||||
$onInit() {
|
||||
this.$.params = this.$location.search();
|
||||
if (!this.$.params)
|
||||
this.$.params = {};
|
||||
this.$.data = null;
|
||||
|
||||
this.$http.get(`Zones/getEvents`, {params: this.$.params})
|
||||
.then(res => {
|
||||
const data = res.data;
|
||||
this.$.data = data;
|
||||
const agencyModeFk = this.$.params.agencyModeFk;
|
||||
const geoFk = this.$.params.geoFk;
|
||||
|
||||
this.$location.path('/zone/delivery-days').search({agencyModeFk, geoFk});
|
||||
});
|
||||
}
|
||||
|
@ -25,14 +28,17 @@ class Controller extends Section {
|
|||
$postLink() {
|
||||
this.deliveryMethodFk = 'delivery';
|
||||
}
|
||||
|
||||
onSubmit() {
|
||||
this.$.data = null;
|
||||
|
||||
this.$http.get(`Zones/getEvents`, {params: this.$.params})
|
||||
.then(res => {
|
||||
const data = res.data;
|
||||
this.$.data = data;
|
||||
const agencyModeFk = this.$.params.agencyModeFk;
|
||||
const geoFk = this.$.params.geoFk;
|
||||
|
||||
this.$location.path('/zone/delivery-days').search({agencyModeFk, geoFk});
|
||||
if (!data.events.length)
|
||||
this.vnApp.showMessage(this.$t('No service for the specified zone'));
|
||||
|
|
Loading…
Reference in New Issue