mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-18 09:29:46 +02:00
Move locales to single json files & Replace laravel-vue-i18n with vue-i18n
This commit is contained in:
4
resources/js/stores/twofaccounts.js
vendored
4
resources/js/stores/twofaccounts.js
vendored
@@ -146,7 +146,7 @@ export const useTwofaccounts = defineStore({
|
||||
* Deletes selected accounts
|
||||
*/
|
||||
async deleteSelected() {
|
||||
if(confirm(trans('twofaccounts.confirm.delete')) && this.selectedIds.length > 0) {
|
||||
if(confirm(t('message.twofaccounts.confirm.delete')) && this.selectedIds.length > 0) {
|
||||
await twofaccountService.batchDelete(this.selectedIds.join())
|
||||
.then(response => {
|
||||
let remainingItems = this.items
|
||||
@@ -155,7 +155,7 @@ export const useTwofaccounts = defineStore({
|
||||
})
|
||||
this.items = remainingItems
|
||||
this.selectNone()
|
||||
useNotifyStore().success({ text: trans('twofaccounts.accounts_deleted') })
|
||||
useNotifyStore().success({ text: t('message.twofaccounts.accounts_deleted') })
|
||||
})
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user