From ba398cad7f99f73a62ce24e70644759f2e358a3f Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Wed, 28 Sep 2022 11:41:06 +0300 Subject: [PATCH] added variable in modal add new --- resources/assets/js/components/AkauntingModalAddNew.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/AkauntingModalAddNew.vue b/resources/assets/js/components/AkauntingModalAddNew.vue index 1846ca549..3fc07e890 100644 --- a/resources/assets/js/components/AkauntingModalAddNew.vue +++ b/resources/assets/js/components/AkauntingModalAddNew.vue @@ -228,6 +228,7 @@ export default { '#efef32' ], min_date: false, + selected_card: null } }, @@ -288,7 +289,13 @@ export default { .catch(error => { }); }, - } + }, + + watch: { + 'selected_card': function (newVal, oldVal) { + this.form.card_id = newVal; + }, + }, }) }); }