'Delete function code refactor'

This commit is contained in:
Burak Civan
2021-05-21 14:34:05 +03:00
parent dbbad60b6e
commit fc12930471
3 changed files with 14 additions and 21 deletions

View File

@ -285,16 +285,7 @@ export default {
this.onSubmitEvent("POST", url + "/wizard/taxes", "type", this.taxes);
},
deleteCurrency(event) {
this.taxes.forEach(function (tax, index) {
if (tax.id == event.tax_id) {
this.taxes.splice(index, 1);
return;
}
}, this);
this.component = "";
this.onSuccessDelete(event);
this.onDeleteEvent(event, this.taxes, event.tax_id);
},
},
};