Skip to content

Commit

Permalink
Merge pull request #968 from nextcloud/fix/localcontact/value-watcher…
Browse files Browse the repository at this point in the history
…-update

Use localContact to detect changes
  • Loading branch information
skjnldsv authored Mar 4, 2019
2 parents bd33df7 + 60b0708 commit f42acff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/ContactDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down Expand Up @@ -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
},

Expand Down
1 change: 0 additions & 1 deletion src/components/ContactDetails/ContactDetailsProperty.vue
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,5 @@ export default {
this.$emit('updatedcontact')
}
}

}
</script>

0 comments on commit f42acff

Please sign in to comment.