summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-19 22:34:43 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-19 22:34:43 +0100
commit88294a4d12f85b366057a0e8baf0812391554b11 (patch)
treef305947e7ba1f2edb4c4a101c89a4e0a17e7ac29
parent4dc5d00c4f59ccf5701fb93d42fff044c6f23c9c (diff)
Make sure we upgrad elocal value groups on contacts switch
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--src/components/Properties/PropertyGroups.vue14
-rw-r--r--src/components/Settings/SettingsImportContacts.vue2
2 files changed, 15 insertions, 1 deletions
diff --git a/src/components/Properties/PropertyGroups.vue b/src/components/Properties/PropertyGroups.vue
index 0ee7f23c..fc062409 100644
--- a/src/components/Properties/PropertyGroups.vue
+++ b/src/components/Properties/PropertyGroups.vue
@@ -96,6 +96,20 @@ export default {
}
},
+ watch: {
+ /**
+ * Since we're updating a local data based on the value prop,
+ * we need to make sure to update the local data on pop change
+ * TODO: check if this create performance drop
+ */
+ value: function() {
+ this.localValue = this.value
+ },
+ selectType: function() {
+ this.localType = this.selectType
+ }
+ },
+
methods: {
/**
diff --git a/src/components/Settings/SettingsImportContacts.vue b/src/components/Settings/SettingsImportContacts.vue
index a3e9b511..c44c4939 100644
--- a/src/components/Settings/SettingsImportContacts.vue
+++ b/src/components/Settings/SettingsImportContacts.vue
@@ -86,7 +86,7 @@ export default {
this.importDestination = value
}
},
-
+
// disable multiselect when there is only one address book
isSingleAddressbook() {
return this.options.length === 1