summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2019-03-04 10:40:22 +0100
committerGitHub <noreply@github.com>2019-03-04 10:40:22 +0100
commitf42acff7fc36fac6b3c67caaa4ef4dec29233508 (patch)
tree80ad91923b8242e6f134d1a66a8e79e8893fd53b /src
parentbd33df7f183d390ab64d690f7712ae2eaaca94e1 (diff)
parent60b0708ca296a1a7663fab2f5654697d97534a04 (diff)
Merge pull request #968 from nextcloud/fix/localcontact/value-watcher-update
Use localContact to detect changes
Diffstat (limited to 'src')
-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 f24759b3..76c238da 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>