change on-response for on-accept
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
84bacfd379
commit
2275541bb1
|
@ -168,5 +168,5 @@
|
|||
<vn-confirm
|
||||
vn-id="confirm"
|
||||
question="Delete sale from claim?"
|
||||
on-response="$ctrl.deleteClaimedSale($response)">
|
||||
on-accept="$ctrl.deleteClaimedSale()">
|
||||
</vn-confirm>
|
|
@ -78,8 +78,7 @@ class Controller extends Section {
|
|||
this.$.confirm.show();
|
||||
}
|
||||
|
||||
deleteClaimedSale(response) {
|
||||
if (response === 'accept') {
|
||||
deleteClaimedSale() {
|
||||
let query = `ClaimBeginnings/${this.sale.id}`;
|
||||
this.$http.delete(query).then(() => {
|
||||
this.vnApp.showSuccess(this.$translate.instant('Data saved!'));
|
||||
|
@ -87,7 +86,6 @@ class Controller extends Section {
|
|||
this.calculateTotals();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
setClaimedQuantity(id, claimedQuantity) {
|
||||
let params = {id: id, quantity: claimedQuantity};
|
||||
|
|
Loading…
Reference in New Issue