mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Merge pull request #947 from MTRNord/patch-1
Fix vector-im/riot-web#4042
This commit is contained in:
commit
02c2930531
@ -545,12 +545,14 @@ module.exports = React.createClass({
|
||||
);
|
||||
},
|
||||
|
||||
onLanguageChange: function(l) {
|
||||
UserSettingsStore.setLocalSetting('language', l);
|
||||
this.setState({
|
||||
language: l,
|
||||
});
|
||||
PlatformPeg.get().reload();
|
||||
onLanguageChange: function(newLang) {
|
||||
if(this.state.language !== newLang) {
|
||||
UserSettingsStore.setLocalSetting('language', newLang);
|
||||
this.setState({
|
||||
language: newLang,
|
||||
});
|
||||
PlatformPeg.get().reload();
|
||||
}
|
||||
},
|
||||
|
||||
_renderLanguageSetting: function () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user