SychO yes this step is done, but i need to understand how to refactor admin settings
my old code is:
import app from 'flarum/admin/app';
app.initializers.add('ext', () => {
app.extensionData
.for('my-extension')
.registerSetting({
i've refactored with
import app from 'flarum/admin/app';
import Extend from 'flarum/common/extenders';
export { default as extend } from './extend';
app.initializers.add('ext', () => {
new Extend.Admin()
.setting(() => ({
setting: 'ext',
name: 'ext',
type: 'number',
label: app.translator.trans('ext'),
help: app.translator.trans('ext'),
}))
.setting(() => ({
//...more settings
});
but nothing works, no settings are visible in the extension
it works if i use app.registry, but i do not understand ho to use the extender