Skip to main content
Sign in
Snippets Groups Projects
Unverified Commit fb8bc8e8 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Fix setting the signature outside of Vuex

parent 0582fbcd
Branches
Tags
No related merge requests found
......@@ -53,6 +53,7 @@ export default {
data() {
return {
loading: false,
signature: this.account.signature,
}
},
methods: {
......
......
......@@ -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
})
},
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment