From 01bdae6f3496fcc0e38a5f676f7e40be1b245aa5 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Thu, 29 Sep 2022 20:06:15 +0200 Subject: Fix address book picker Signed-off-by: Richard Steinmetz --- src/components/ContactDetails.vue | 6 +++++- src/components/Properties/PropertySelect.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue index 97021d70..089571fb 100644 --- a/src/components/ContactDetails.vue +++ b/src/components/ContactDetails.vue @@ -442,7 +442,10 @@ export default { return this.contact.addressbook.id }, set(addressbookId) { - this.moveContactToAddressbook(addressbookId) + // Only move when the address book actually changed to prevent a conflict. + if (this.contact.addressbook.id !== addressbookId) { + this.moveContactToAddressbook(addressbookId) + } }, }, @@ -479,6 +482,7 @@ export default { * This is the list of addressbooks that are available to write * * @return {Array} + * @return {{id: string, name: string}[]} */ addressbooksOptions() { return this.addressbooks diff --git a/src/components/Properties/PropertySelect.vue b/src/components/Properties/PropertySelect.vue index eaca3116..8efe6c82 100644 --- a/src/components/Properties/PropertySelect.vue +++ b/src/components/Properties/PropertySelect.vue @@ -39,7 +39,7 @@