fix(settings): language can be changed in firefox, fixes #9514

This commit is contained in:
Matteo Pagliazzi 2018-05-19 20:17:48 +02:00
parent 86ec68bedb
commit 54bee67e03

View file

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