diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2020-11-07 17:22:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 17:22:55 +0100 |
commit | 23e887b0dbcc4f4dbd4fbd9e1244f1db4a7b055d (patch) | |
tree | a90e51b86faf30dd02347a21198de52c6bddeb1b /src | |
parent | 8d3085ca17bb81f72c7bf2edff7edc24e94e5233 (diff) | |
parent | 8d5a93c2659190c2bac67bb8e3210ff43c311c6f (diff) |
Merge pull request #1883 from nextcloud/fix/bulk/contacts-group-add
Fix bulk contacts add to group
Diffstat (limited to 'src')
-rw-r--r-- | src/views/Contacts.vue | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue index 76a0d1be..1d29c025 100644 --- a/src/views/Contacts.vue +++ b/src/views/Contacts.vue @@ -190,13 +190,6 @@ <ImportView @close="closeImport" /> </Modal> - <!-- Select contacts group modal --> - <EntityPicker v-if="showContactPicker" - :data-types="pickerTypes" - :data-set="pickerData" - @close="onContactPickerClose" - @submit="onContactPickerPick" /> - <!-- Bulk contacts edit modal --> <Modal v-if="isProcessing || isProcessDone" :clear-view-delay="-1" @@ -204,6 +197,13 @@ @close="closeProcess"> <AddToGroupView v-bind="processStatus" @close="closeProcess" /> </Modal> + + <!-- Select contacts group modal --> + <EntityPicker v-else-if="showContactPicker" + :data-types="pickerTypes" + :data-set="pickerData" + @close="onContactPickerClose" + @submit="onContactPickerPick" /> </Content> </template> @@ -306,6 +306,7 @@ export default { searchQuery: '', showContactPicker: false, contactPickerforGroup: null, + pickerData: [], pickerTypes: [{ id: 'contact', label: t('contacts', 'Contacts'), @@ -720,6 +721,8 @@ export default { // Bulk contacts group management handlers addContactsToGroup(group) { + console.debug('Contacts picker opened for group', group) + // Get the full group if we provided the group name only if (typeof group === 'string') { group = this.groups.find(a => a.name === group) |