minor refactor
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-03-24 17:01:11 +01:00
parent 3283f957ba
commit 12c2b577e6
2 changed files with 4 additions and 5 deletions

View File

@ -47,7 +47,7 @@ class Controller extends ModuleCard {
] ]
}; };
this.$q.all([ return this.$q.all([
this.$http.get(`Orders/${this.$params.id}`, {filter}) this.$http.get(`Orders/${this.$params.id}`, {filter})
.then(res => this.order = res.data), .then(res => this.order = res.data),
this.$http.get(`Orders/${this.$params.id}/getTotal`) this.$http.get(`Orders/${this.$params.id}/getTotal`)

View File

@ -43,10 +43,9 @@ class Controller extends Section {
rows: [row.id], rows: [row.id],
actualOrderId: this.$params.id actualOrderId: this.$params.id
}; };
return this.$http.post(`OrderRows/removes`, params).then(() => { return this.$http.post(`OrderRows/removes`, params)
this.card.reload(); .then(() => this.card.reload())
this.vnApp.showSuccess(this.$t('Data saved!')); .then(() => this.vnApp.showSuccess(this.$t('Data saved!')));
});
} }
showDescriptor(event, itemFk) { showDescriptor(event, itemFk) {