mirror of
https://github.com/flarum/framework.git
synced 2025-05-04 10:34:04 +08:00
Update admin JS for admin ux redesign
This commit is contained in:
parent
9b59494f99
commit
3b86682f84
@ -7,6 +7,6 @@ import StatisticsWidget from './components/StatisticsWidget';
|
|||||||
|
|
||||||
app.initializers.add('flarum-statistics', () => {
|
app.initializers.add('flarum-statistics', () => {
|
||||||
extend(DashboardPage.prototype, 'availableWidgets', widgets => {
|
extend(DashboardPage.prototype, 'availableWidgets', widgets => {
|
||||||
widgets.push(<StatisticsWidget/>);
|
widgets.add('statistics', <StatisticsWidget/>, 20);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user