Show language prefs when custom CSS is enabled (#418)

This commit is contained in:
George Gevoian 2023-02-01 15:19:15 -05:00 committed by GitHub
parent 4550058984
commit 046222b1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,10 +137,9 @@ export class AccountPage extends Disposable {
), ),
dom.create(MFAConfig, user), dom.create(MFAConfig, user),
), ),
// Custom CSS is incompatible with custom themes.
enableCustomCss ? null : [
css.header(t("Theme")), css.header(t("Theme")),
dom.create(ThemeConfig, this._appModel), // Custom CSS is incompatible with custom themes.
enableCustomCss ? null : dom.create(ThemeConfig, this._appModel),
css.subHeader(t("Language")), css.subHeader(t("Language")),
css.dataRow({ style: 'width: 300px'}, css.dataRow({ style: 'width: 300px'},
select(userLocale, languageOptions, { select(userLocale, languageOptions, {
@ -149,8 +148,7 @@ export class AccountPage extends Disposable {
} }
}), }),
testId('language'), testId('language'),
) ),
],
css.header(t("API")), css.header(t("API")),
css.dataRow(css.inlineSubHeader(t("API Key")), css.content( css.dataRow(css.inlineSubHeader(t("API Key")), css.content(
dom.create(ApiKey, { dom.create(ApiKey, {