file updated..

This commit is contained in:
Cüneyt Şentürk
2021-07-10 00:24:44 +03:00
parent deda93e8a1
commit ead767a308
10 changed files with 186 additions and 3 deletions

View File

@ -30,6 +30,15 @@ const app = new Vue({
form: new Form('transfer'),
bulk_action: new BulkAction('transfers'),
show_rate: false,
transfer_form: new Form('template'),
template: {
modal: false,
title: '',
message: '',
html: '',
errors: new Error()
},
}
},
@ -87,5 +96,35 @@ const app = new Vue({
}
});
},
onTemplate() {
this.template.modal = true;
this.transfer_form = new Form('template');
this.transfer_form.template = this.transfer_form._template;
},
addTemplate() {
if (this.transfer_form.template != 1) {
this.transfer_form.submit();
this.template.errors = this.transfer_form.errors;
}
this.form.loading = true;
this.$emit("confirm");
},
closeTemplate() {
this.template = {
modal: false,
title: '',
message: '',
errors: this.transfer_form.errors
};
},
}
});