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