Skip to content

Commit

Permalink
remove unnecessary method for account
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed May 11, 2023
1 parent 7958a9f commit 9e94dd9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
25 changes: 0 additions & 25 deletions resources/assets/js/views/banking/accounts.js
Expand Up @@ -31,29 +31,4 @@ const app = new Vue({
bulk_action: new BulkAction('accounts'),
}
},

methods: {
onType(event) {
return;
let type = event.target.value;

switch(type) {
case 'credit_card':
this.onCreditCard();
break;
case 'bank':
default:
this.onBank();
break;
}
},

onCreditCard() {

},

onBank() {

},
}
});
1 change: 0 additions & 1 deletion resources/views/banking/accounts/create.blade.php
Expand Up @@ -26,7 +26,6 @@
'credit_card' => trans_choice('accounts.credit_cards', 1),
]"
checked="bank"
@input="onType($event)"
/>

<x-form.group.text name="name" label="{{ trans('general.name') }}" form-group-class="sm:col-span-6" />
Expand Down
1 change: 0 additions & 1 deletion resources/views/banking/accounts/edit.blade.php
Expand Up @@ -20,7 +20,6 @@
'credit_card' => trans_choice('accounts.credit_cards', 1),
]"
checked="{{ $account->type }}"
@input="onType($event)"
/>

<x-form.group.text name="name" label="{{ trans('general.name') }}" form-group-class="sm:col-span-6" />
Expand Down

0 comments on commit 9e94dd9

Please sign in to comment.