summaryrefslogtreecommitdiffstats
path: root/src/components/Properties
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 /src/components/Properties
parent4dc5d00c4f59ccf5701fb93d42fff044c6f23c9c (diff)
Make sure we upgrad elocal value groups on contacts switch
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/components/Properties')
-rw-r--r--src/components/Properties/PropertyGroups.vue14
1 files changed, 14 insertions, 0 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: {
/**