summaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-03-04 09:56:12 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-03-04 09:56:12 +0100
commit60b0708ca296a1a7663fab2f5654697d97534a04 (patch)
tree38e6828abc45662828762c1cef23c8a7252e4325 /src/components
parentbdd93836aa0613e5f9c61f2496505e4c45f1febc (diff)
Use localContact to detect changes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ContactDetails.vue4
-rw-r--r--src/components/ContactDetails/ContactDetailsProperty.vue1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue
index 4e1fdddd..6a7d0c09 100644
--- a/src/components/ContactDetails.vue
+++ b/src/components/ContactDetails.vue
@@ -254,7 +254,7 @@ export default {
* @returns {Array}
*/
sortedProperties() {
- return this.contact.properties.slice(0).sort((a, b) => {
+ return this.localContact.properties.slice(0).sort((a, b) => {
return (
rfcProps.fieldOrder.indexOf(a.name) - rfcProps.fieldOrder.indexOf(b.name)
)
@@ -364,7 +364,7 @@ export default {
*/
async updateContact() {
this.loadingUpdate = true
- await this.$store.dispatch('updateContact', this.contact)
+ await this.$store.dispatch('updateContact', this.localContact)
this.loadingUpdate = false
},
diff --git a/src/components/ContactDetails/ContactDetailsProperty.vue b/src/components/ContactDetails/ContactDetailsProperty.vue
index cfe5abe2..048b3e20 100644
--- a/src/components/ContactDetails/ContactDetailsProperty.vue
+++ b/src/components/ContactDetails/ContactDetailsProperty.vue
@@ -285,6 +285,5 @@ export default {
this.$emit('updatedcontact')
}
}
-
}
</script>