mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
Update admin JS for admin ux redesign
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user