Hide spell-check settings if not using Electron
parent
db5bc0cb7a
commit
bab541a652
|
@ -128,6 +128,14 @@ export default abstract class BasePlatform {
|
||||||
hideUpdateToast();
|
hideUpdateToast();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if platform supports multi-language
|
||||||
|
* spell-checking, otherwise false.
|
||||||
|
*/
|
||||||
|
supportsMultiLanguageSpellCheck(): boolean {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the platform supports displaying
|
* Returns true if the platform supports displaying
|
||||||
* notifications, otherwise false.
|
* notifications, otherwise false.
|
||||||
|
|
|
@ -400,6 +400,9 @@ export default class GeneralUserSettingsTab extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
const plaf = PlatformPeg.get();
|
||||||
|
const supportsMultiLanguageSpellCheck = plaf.supportsMultiLanguageSpellCheck() ? true : false;
|
||||||
|
|
||||||
const discoWarning = this.state.requiredPolicyInfo.hasTerms
|
const discoWarning = this.state.requiredPolicyInfo.hasTerms
|
||||||
? <img className='mx_GeneralUserSettingsTab_warningIcon'
|
? <img className='mx_GeneralUserSettingsTab_warningIcon'
|
||||||
src={require("../../../../../../res/img/feather-customised/warning-triangle.svg")}
|
src={require("../../../../../../res/img/feather-customised/warning-triangle.svg")}
|
||||||
|
@ -428,7 +431,7 @@ export default class GeneralUserSettingsTab extends React.Component {
|
||||||
{this._renderProfileSection()}
|
{this._renderProfileSection()}
|
||||||
{this._renderAccountSection()}
|
{this._renderAccountSection()}
|
||||||
{this._renderLanguageSection()}
|
{this._renderLanguageSection()}
|
||||||
{this._renderSpellCheckSection()}
|
{supportsMultiLanguageSpellCheck ? this._renderSpellCheckSection() : null}
|
||||||
{ discoverySection }
|
{ discoverySection }
|
||||||
{this._renderIntegrationManagerSection() /* Has its own title */}
|
{this._renderIntegrationManagerSection() /* Has its own title */}
|
||||||
{ accountManagementSection }
|
{ accountManagementSection }
|
||||||
|
|
Loading…
Reference in New Issue