Admin: fix default language selector

the binding of the control to the value was missing
fixes #1164
This commit is contained in:
Timotheus Pokorra
2017-05-01 18:46:12 +02:00
parent c82f0bde61
commit a7d3bdf244
2 changed files with 2 additions and 0 deletions

View File

@ -18103,6 +18103,7 @@ System.register('flarum/components/BasicsPage', ['flarum/components/Page', 'flar
label: app.translator.trans('core.admin.basics.default_language_heading'), label: app.translator.trans('core.admin.basics.default_language_heading'),
children: [Select.component({ children: [Select.component({
options: this.localeOptions, options: this.localeOptions,
value: this.values.default_locale(),
onchange: this.values.default_locale onchange: this.values.default_locale
})] })]
}) : '', }) : '',

View File

@ -64,6 +64,7 @@ export default class BasicsPage extends Page {
children: [ children: [
Select.component({ Select.component({
options: this.localeOptions, options: this.localeOptions,
value: this.values.default_locale(),
onchange: this.values.default_locale onchange: this.values.default_locale
}) })
] ]