import Component from 'flarum/Component'; import FieldSet from 'flarum/components/FieldSet'; import Select from 'flarum/components/Select'; import Button from 'flarum/components/Button'; export default class BasicsPage extends Component { constructor(...args) { super(...args); this.loading = false; this.fields = [ 'forum_title', 'forum_description', 'default_locale', 'default_route', 'welcome_title', 'welcome_message' ]; this.values = {}; const config = app.forum.attribute('config'); this.fields.forEach(key => this.values[key] = m.prop(config[key])); this.localeOptions = {}; const locales = app.forum.attribute('availableLocales'); for (const i in locales) { this.localeOptions[i] = `${locales[i]} (${i})`; } } view() { return (