From d4b6dc3bd292f49d29aaf4ed9dbf15bf6d7670ef Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Thu, 6 Feb 2020 16:08:46 +0100 Subject: [PATCH] Make accounts clickable for delete feature --- resources/js/views/Accounts.vue | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) 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} )