mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 20:41:30 +03:00
Added persistance
This commit is contained in:
parent
43daec03e2
commit
5e4f9907cf
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,7 @@ export default class GeneralUserSettingsTab extends React.Component {
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
language: languageHandler.getCurrentLanguage(),
|
language: languageHandler.getCurrentLanguage(),
|
||||||
spellCheckLanguages: [],
|
spellCheckLanguages: SettingsStore.getValue("spell-check-languages", null, /*excludeDefault=*/true),
|
||||||
haveIdServer: Boolean(MatrixClientPeg.get().getIdentityServerUrl()),
|
haveIdServer: Boolean(MatrixClientPeg.get().getIdentityServerUrl()),
|
||||||
serverSupportsSeparateAddAndBind: null,
|
serverSupportsSeparateAddAndBind: null,
|
||||||
idServerHasUnsignedTerms: false,
|
idServerHasUnsignedTerms: false,
|
||||||
|
@ -185,7 +185,9 @@ export default class GeneralUserSettingsTab extends React.Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
_onSpellCheckLanguagesChange = (languages) => {
|
_onSpellCheckLanguagesChange = (languages) => {
|
||||||
|
SettingsStore.setValue("spell-check-languages", null, SettingLevel.DEVICE, languages);
|
||||||
this.setState({spellCheckLanguages: languages})
|
this.setState({spellCheckLanguages: languages})
|
||||||
|
PlatformPeg.get().reload();
|
||||||
};
|
};
|
||||||
|
|
||||||
_onPasswordChangeError = (err) => {
|
_onPasswordChangeError = (err) => {
|
||||||
|
|
Loading…
Reference in a new issue