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,20 +137,18 @@ export class AccountPage extends Disposable {
), ),
dom.create(MFAConfig, user), dom.create(MFAConfig, user),
), ),
css.header(t("Theme")),
// Custom CSS is incompatible with custom themes. // Custom CSS is incompatible with custom themes.
enableCustomCss ? null : [ enableCustomCss ? null : dom.create(ThemeConfig, this._appModel),
css.header(t("Theme")), css.subHeader(t("Language")),
dom.create(ThemeConfig, this._appModel), css.dataRow({ style: 'width: 300px'},
css.subHeader(t("Language")), select(userLocale, languageOptions, {
css.dataRow({ style: 'width: 300px'}, renderOptionArgs: () => {
select(userLocale, languageOptions, { return dom.cls(cssFirstUpper.className);
renderOptionArgs: () => { }
return dom.cls(cssFirstUpper.className); }),
} 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, {