Przeglądaj źródła

Fix twofaccounts move feature

Bubka 1 rok temu
rodzic
commit
2ad5105378

+ 1 - 1
resources/js_vue3/components/DestinationGroupSelector.vue

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

+ 4 - 1
resources/js_vue3/views/twofaccounts/Accounts.vue

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