fix(settings): when changing language, reload page entirely, fixes #9904

This commit is contained in:
Matteo Pagliazzi
2018-05-19 20:22:30 +02:00
parent 54bee67e03
commit c5a497ef91

View File

@@ -345,7 +345,7 @@ export default {
const newLang = e.target.value;
this.user.preferences.language = newLang;
await this.set('language');
setTimeout(() => window.location.href = '/');
setTimeout(() => window.location.reload(true));
},
async changeUser (attribute, updates) {
await axios.put(`/api/v3/user/auth/update-${attribute}`, updates);