mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-25 22:41:57 +02:00
Fix bad var usage
This commit is contained in:
parent
beb5ee027a
commit
d74e0cedac
4
resources/js_vue3/stores/twofaccounts.js
vendored
4
resources/js_vue3/stores/twofaccounts.js
vendored
@ -143,13 +143,13 @@ export const useTwofaccounts = defineStore({
|
|||||||
if(confirm(trans('twofaccounts.confirm.delete')) && this.selectedIds.length > 0) {
|
if(confirm(trans('twofaccounts.confirm.delete')) && this.selectedIds.length > 0) {
|
||||||
await twofaccountService.batchDelete(this.selectedIds.join())
|
await twofaccountService.batchDelete(this.selectedIds.join())
|
||||||
.then(response => {
|
.then(response => {
|
||||||
ids.forEach(function(id) {
|
selectedIds.forEach(function(id) {
|
||||||
this.items = this.items.filter(a => a.id !== id)
|
this.items = this.items.filter(a => a.id !== id)
|
||||||
})
|
})
|
||||||
useNotifyStore().success({ text: trans('twofaccounts.accounts_deleted') })
|
useNotifyStore().success({ text: trans('twofaccounts.accounts_deleted') })
|
||||||
})
|
})
|
||||||
|
|
||||||
this.refresh()
|
//this.refresh()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user