mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-17 02:41:13 +01:00
Fix twofaccounts move feature
This commit is contained in:
parent
9b1733525f
commit
2ad5105378
@ -10,7 +10,7 @@
|
|||||||
})
|
})
|
||||||
const destinationGroupId = ref(null)
|
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
|
* 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
|
// we fetch the accounts again to prevent the js collection being
|
||||||
// desynchronize from the backend php collection
|
// desynchronize from the backend php collection
|
||||||
twofaccounts.fetch()
|
twofaccounts.fetch()
|
||||||
|
twofaccounts.selectNone()
|
||||||
|
showDestinationGroupSelector.value = false
|
||||||
notify.success({ text: trans('twofaccounts.accounts_moved') })
|
notify.success({ text: trans('twofaccounts.accounts_moved') })
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,7 +226,8 @@
|
|||||||
v-if="showDestinationGroupSelector"
|
v-if="showDestinationGroupSelector"
|
||||||
v-model:showDestinationGroupSelector="showDestinationGroupSelector"
|
v-model:showDestinationGroupSelector="showDestinationGroupSelector"
|
||||||
v-model:selectedAccountsIds="twofaccounts.selectedIds"
|
v-model:selectedAccountsIds="twofaccounts.selectedIds"
|
||||||
@account-moved="postGroupAssignementUpdate">
|
:groups="groups.items"
|
||||||
|
@accounts-moved="postGroupAssignementUpdate">
|
||||||
</DestinationGroupSelector>
|
</DestinationGroupSelector>
|
||||||
<!-- header -->
|
<!-- header -->
|
||||||
<div class="header" v-if="showAccounts || showGroupSwitch">
|
<div class="header" v-if="showAccounts || showGroupSwitch">
|
||||||
|
Loading…
Reference in New Issue
Block a user