Oops, forgot to correct test code

This commit is contained in:
Toby Zerner 2017-07-22 12:29:03 +09:30
parent d16f4dbefa
commit 8d76168bd4
2 changed files with 3 additions and 2 deletions

View File

@ -18097,7 +18097,7 @@ System.register('flarum/components/BasicsPage', ['flarum/components/Page', 'flar
app.translator.trans('core.admin.basics.forum_description_text')
), m('textarea', { className: 'FormControl', value: this.values.forum_description(), oninput: m.withAttr('value', this.values.forum_description) })]
}),
Object.keys(this.localeOptions).length > 0 ? FieldSet.component({
Object.keys(this.localeOptions).length > 1 ? FieldSet.component({
label: app.translator.trans('core.admin.basics.default_language_heading'),
children: [Select.component({
options: this.localeOptions,
@ -19852,6 +19852,7 @@ System.register('flarum/components/Navigation', ['flarum/Component', 'flarum/com
href: history.backUrl(),
icon: 'chevron-left',
title: previous.title,
config: function config() {},
onclick: function onclick(e) {
if (e.shiftKey || e.ctrlKey || e.metaKey || e.which === 2) return;
e.preventDefault();

View File

@ -58,7 +58,7 @@ export default class BasicsPage extends Page {
]
})}
{Object.keys(this.localeOptions).length > 0
{Object.keys(this.localeOptions).length > 1
? FieldSet.component({
label: app.translator.trans('core.admin.basics.default_language_heading'),
children: [