change()  change to updateUserLocale()
This commit is contained in:
Alexander Friedland 2019-10-24 08:52:24 +02:00 committed by GitHub
parent 9dccb5fc0a
commit b584f12bb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ export default {
methods: { methods: {
changeLanguage(locale, toggleMenu) { changeLanguage(locale, toggleMenu) {
this.$i18n.set(locale) this.$i18n.set(locale)
this.change() this.updateUserLocale()
toggleMenu() toggleMenu()
}, },
matcher(locale) { matcher(locale) {
@ -83,7 +83,7 @@ export default {
...mapMutations({ ...mapMutations({
setCurrentUser: 'auth/SET_USER', setCurrentUser: 'auth/SET_USER',
}), }),
async change() { async updateUserLocale() {
try { try {
await this.$apollo.mutate({ await this.$apollo.mutate({
mutation: localeMutation(), mutation: localeMutation(),