diff --git a/resources/js/views/Accounts.vue b/resources/js/views/Accounts.vue index 5e63046c..2383d21b 100644 --- a/resources/js/views/Accounts.vue +++ b/resources/js/views/Accounts.vue @@ -31,11 +31,11 @@
- +
-
+
{{ account.service }} @@ -220,8 +220,21 @@ }) }, - showAccount(id) { - this.$refs.TwofaccountShow.showAccount(id) + showAccount(account) { + if(this.editMode) { + + for (var i=0 ; i ids.push(account.id)) + this.selectedAccounts.forEach(id => ids.push(id)) // Backend will delete all accounts at the same time await this.axios.delete('/api/twofaccounts/batch', {data: ids} )