Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-04-09 12:48:38 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-04-09 12:48:38 +0300
commitfb8bc8e84d9afd4e03514eb03bb04e0ac595f092 (patch)
tree769576993984f82a655d624190516c5cc39aa3ca /src
parent0582fbcd305791096ba6aaed53a3d4752b1673ad (diff)
Fix setting the signature outside of Vuex
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src')
-rw-r--r--src/components/SignatureSettings.vue1
-rw-r--r--src/store/actions.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/components/SignatureSettings.vue b/src/components/SignatureSettings.vue
index 1a8ded313..e18171fc1 100644
--- a/src/components/SignatureSettings.vue
+++ b/src/components/SignatureSettings.vue
@@ -53,6 +53,7 @@ export default {
data() {
return {
loading: false,
+ signature: this.account.signature,
}
},
methods: {
diff --git a/src/store/actions.js b/src/store/actions.js
index 5018ef799..2c8da192d 100644
--- a/src/store/actions.js
+++ b/src/store/actions.js
@@ -84,8 +84,8 @@ export default {
updateAccountSignature({commit}, {account, signature}) {
return updateSignature(account, signature).then(() => {
console.debug('account signature updated')
- account.signature = signature
- commit('editAccount', account)
+ const updated = Object.assign({}, account, {signature})
+ commit('editAccount', updated)
return account
})
},