mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 16:23:18 +01:00
Fix twofaccounts move feature
This commit is contained in:
parent
9b1733525f
commit
2ad5105378
@ -10,7 +10,7 @@
|
||||
})
|
||||
const destinationGroupId = ref(null)
|
||||
|
||||
const emit = defineEmits(['update:showDestinationGroupSelector, accounts-moved'])
|
||||
const emit = defineEmits(['update:showDestinationGroupSelector', 'accounts-moved'])
|
||||
|
||||
/**
|
||||
* Move accounts selected from the Edit mode to another group or withdraw them
|
||||
|
@ -72,6 +72,8 @@
|
||||
// we fetch the accounts again to prevent the js collection being
|
||||
// desynchronize from the backend php collection
|
||||
twofaccounts.fetch()
|
||||
twofaccounts.selectNone()
|
||||
showDestinationGroupSelector.value = false
|
||||
notify.success({ text: trans('twofaccounts.accounts_moved') })
|
||||
}
|
||||
|
||||
@ -224,7 +226,8 @@
|
||||
v-if="showDestinationGroupSelector"
|
||||
v-model:showDestinationGroupSelector="showDestinationGroupSelector"
|
||||
v-model:selectedAccountsIds="twofaccounts.selectedIds"
|
||||
@account-moved="postGroupAssignementUpdate">
|
||||
:groups="groups.items"
|
||||
@accounts-moved="postGroupAssignementUpdate">
|
||||
</DestinationGroupSelector>
|
||||
<!-- header -->
|
||||
<div class="header" v-if="showAccounts || showGroupSwitch">
|
||||
|
Loading…
Reference in New Issue
Block a user