mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
Only display "show language selector" toggle if there is more than one language
This commit is contained in:
@@ -58,7 +58,7 @@ export default class BasicsPage extends Page {
|
|||||||
]
|
]
|
||||||
})}
|
})}
|
||||||
|
|
||||||
{Object.keys(this.localeOptions).length > 1
|
{Object.keys(this.localeOptions).length > 0
|
||||||
? FieldSet.component({
|
? FieldSet.component({
|
||||||
label: app.translator.trans('core.admin.basics.default_language_heading'),
|
label: app.translator.trans('core.admin.basics.default_language_heading'),
|
||||||
children: [
|
children: [
|
||||||
@@ -66,19 +66,16 @@ export default class BasicsPage extends Page {
|
|||||||
options: this.localeOptions,
|
options: this.localeOptions,
|
||||||
value: this.values.default_locale(),
|
value: this.values.default_locale(),
|
||||||
onchange: this.values.default_locale
|
onchange: this.values.default_locale
|
||||||
|
}),
|
||||||
|
Switch.component({
|
||||||
|
state: this.values.show_language_selector(),
|
||||||
|
onchange: this.values.show_language_selector,
|
||||||
|
children: app.translator.trans('core.admin.basics.show_language_selector_label'),
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
: ''}
|
: ''}
|
||||||
|
|
||||||
{Switch.component({
|
|
||||||
state: this.values.show_language_selector(),
|
|
||||||
onchange: this.values.show_language_selector,
|
|
||||||
children: app.translator.trans('core.admin.basics.show_language_selector_label'),
|
|
||||||
})}
|
|
||||||
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
{FieldSet.component({
|
{FieldSet.component({
|
||||||
label: app.translator.trans('core.admin.basics.home_page_heading'),
|
label: app.translator.trans('core.admin.basics.home_page_heading'),
|
||||||
className: 'BasicsPage-homePage',
|
className: 'BasicsPage-homePage',
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
margin-bottom: 30px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
> ul {
|
> ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
@@ -83,6 +83,10 @@ fieldset {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
||||||
|
> ul > li {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
legend {
|
legend {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
Reference in New Issue
Block a user