mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +02:00
wip
This commit is contained in:
committed by
David Wheatley
parent
2dd9e17568
commit
06e5922be5
@@ -75,6 +75,15 @@ export default class AdminNav extends Component {
|
||||
</LinkButton>
|
||||
);
|
||||
|
||||
if (app.data.settings['advanced_settings_pane_enabled']) {
|
||||
items.add(
|
||||
'advanced',
|
||||
<LinkButton href={app.route('advanced')} icon="fas fa-rocket" title={app.translator.trans('core.admin.nav.advanced_title')}>
|
||||
{app.translator.trans('core.admin.nav.advanced_button')}
|
||||
</LinkButton>
|
||||
);
|
||||
}
|
||||
|
||||
items.add(
|
||||
'mail',
|
||||
<LinkButton href={app.route('mail')} icon="fas fa-envelope" title={app.translator.trans('core.admin.nav.email_title')}>
|
||||
|
41
js/src/admin/components/AdvancedPage.js
Normal file
41
js/src/admin/components/AdvancedPage.js
Normal file
@@ -0,0 +1,41 @@
|
||||
import FieldSet from '../../common/components/FieldSet';
|
||||
import ItemList from '../../common/utils/ItemList';
|
||||
import AdminPage from './AdminPage';
|
||||
|
||||
export default class AdvancedPage extends AdminPage {
|
||||
oninit(vnode) {
|
||||
super.oninit(vnode);
|
||||
|
||||
this.queueOptions = [];
|
||||
}
|
||||
|
||||
headerInfo() {
|
||||
return {
|
||||
className: 'AdvancedPage',
|
||||
icon: 'fas fa-rocket',
|
||||
title: app.translator.trans('core.admin.advanced.title'),
|
||||
description: app.translator.trans('core.admin.advanced.description'),
|
||||
};
|
||||
}
|
||||
|
||||
content() {
|
||||
return [
|
||||
<div className="Form">
|
||||
|
||||
{Object.keys(this.queueOptions).length > 1
|
||||
? [
|
||||
this.buildSettingComponent({
|
||||
type: 'select',
|
||||
setting: 'default_locale',
|
||||
options: this.localeOptions,
|
||||
label: app.translator.trans('core.admin.advanced.queue_driver_heading'),
|
||||
})
|
||||
]
|
||||
: ''}
|
||||
|
||||
{this.submitButton()}
|
||||
</div>,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@@ -1,4 +1,5 @@
|
||||
import DashboardPage from './components/DashboardPage';
|
||||
import AdvancedPage from './components/AdvancedPage';
|
||||
import BasicsPage from './components/BasicsPage';
|
||||
import PermissionsPage from './components/PermissionsPage';
|
||||
import AppearancePage from './components/AppearancePage';
|
||||
@@ -16,6 +17,7 @@ export default function (app) {
|
||||
app.routes = {
|
||||
dashboard: { path: '/', component: DashboardPage },
|
||||
basics: { path: '/basics', component: BasicsPage },
|
||||
advanced: { path: '/advanced', component: AdvancedPage },
|
||||
permissions: { path: '/permissions', component: PermissionsPage },
|
||||
appearance: { path: '/appearance', component: AppearancePage },
|
||||
mail: { path: '/mail', component: MailPage },
|
||||
|
Reference in New Issue
Block a user