|
|
@@ -4,16 +4,15 @@ import { DashboardWidgetConfig, Permission, WidgetLayoutDefinition } from '@vend
|
|
|
import { LatestOrdersWidgetComponent } from './widgets/latest-orders-widget/latest-orders-widget.component';
|
|
|
import { OrderChartWidgetComponent } from './widgets/order-chart-widget/order-chart-widget.component';
|
|
|
import { OrderSummaryWidgetComponent } from './widgets/order-summary-widget/order-summary-widget.component';
|
|
|
-import { TestWidgetComponent } from './widgets/test-widget/test-widget.component';
|
|
|
|
|
|
export const DEFAULT_DASHBOARD_WIDGET_LAYOUT: WidgetLayoutDefinition = [
|
|
|
- { id: 'welcome', width: 12 },
|
|
|
+ { id: 'metrics', width: 12 },
|
|
|
{ id: 'orderSummary', width: 6 },
|
|
|
{ id: 'latestOrders', width: 6 },
|
|
|
];
|
|
|
|
|
|
export const DEFAULT_WIDGETS: { [id: string]: DashboardWidgetConfig } = {
|
|
|
- orderChart: {
|
|
|
+ metrics: {
|
|
|
title: _('dashboard.metrics'),
|
|
|
supportedWidths: [6, 8, 12],
|
|
|
loadComponent: () => OrderChartWidgetComponent,
|
|
|
@@ -30,8 +29,4 @@ export const DEFAULT_WIDGETS: { [id: string]: DashboardWidgetConfig } = {
|
|
|
supportedWidths: [6, 8, 12],
|
|
|
requiresPermissions: [Permission.ReadOrder],
|
|
|
},
|
|
|
- testWidget: {
|
|
|
- title: 'Test Widget',
|
|
|
- loadComponent: () => TestWidgetComponent,
|
|
|
- },
|
|
|
};
|