Bug #313 Cuando cancelas vn-confirm guarda los datos igualmente
This commit is contained in:
parent
7f54bcb019
commit
6f45a8fa5b
|
@ -56,13 +56,12 @@ class Controller {
|
|||
}
|
||||
|
||||
returnDialog(response) {
|
||||
if (response === 'CANCEL')
|
||||
return;
|
||||
|
||||
let params = {finished: Date.now()};
|
||||
this.$http.patch(`/client/api/CreditClassifications/${this.classificationId}`, params).then(() => {
|
||||
this._getClassifications(this.client.id);
|
||||
});
|
||||
if (response === 'ACCEPT') {
|
||||
let params = {finished: Date.now()};
|
||||
this.$http.patch(`/client/api/CreditClassifications/${this.classificationId}`, params).then(() => {
|
||||
this._getClassifications(this.client.id);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,10 +18,8 @@ class Controller {
|
|||
}
|
||||
|
||||
returnDialog(response) {
|
||||
if (response === 'CANCEL')
|
||||
return;
|
||||
|
||||
this.addCredit();
|
||||
if (response === 'ACCEPT')
|
||||
this.addCredit();
|
||||
}
|
||||
|
||||
addCredit() {
|
||||
|
|
Loading…
Reference in New Issue