mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
fix: basicspage broken when no displayname drivers enabled (#4062)
This commit is contained in:
@@ -89,9 +89,9 @@ export default class BasicsPage<CustomAttrs extends IPageAttrs = IPageAttrs> ext
|
||||
90
|
||||
);
|
||||
|
||||
Object.keys(this.localeOptions).length > 1 &&
|
||||
items.add(
|
||||
'default-locale',
|
||||
Object.keys(this.localeOptions).length > 1 && (
|
||||
<>
|
||||
{this.buildSettingComponent({
|
||||
type: 'select',
|
||||
@@ -104,8 +104,7 @@ export default class BasicsPage<CustomAttrs extends IPageAttrs = IPageAttrs> ext
|
||||
setting: 'show_language_selector',
|
||||
label: app.translator.trans('core.admin.basics.show_language_selector_label'),
|
||||
})}
|
||||
</>
|
||||
),
|
||||
</>,
|
||||
80
|
||||
);
|
||||
|
||||
@@ -136,9 +135,10 @@ export default class BasicsPage<CustomAttrs extends IPageAttrs = IPageAttrs> ext
|
||||
60
|
||||
);
|
||||
|
||||
Object.keys(this.displayNameOptions).length > 1 &&
|
||||
items.add(
|
||||
'display-name-driver',
|
||||
Object.keys(this.displayNameOptions).length > 1 &&
|
||||
|
||||
this.buildSettingComponent({
|
||||
type: 'select',
|
||||
setting: 'display_name_driver',
|
||||
|
Reference in New Issue
Block a user