Fix twofaccounts move feature

This commit is contained in:
Bubka 2023-11-10 14:25:13 +01:00
parent 9b1733525f
commit 2ad5105378
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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">