diff --git a/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx b/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx index 470a43cb0..cd6083e66 100644 --- a/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx +++ b/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx @@ -18,6 +18,7 @@ import SelectDateRange from 'Shared/SelectDateRange'; import { Tooltip } from 'react-tippy'; import Breadcrumb from 'Shared/Breadcrumb'; import AddMetricContainer from '../DashboardWidgetGrid/AddMetricContainer'; +import AddPredefinedMetric from '../DashboardWidgetGrid/AddPredefinedMetric'; interface IProps { siteId: string; @@ -97,6 +98,18 @@ function DashboardView(props: Props) { } }; + const onAddPredefinedMetrics = () => { + dashboardStore.initDashboard(dashboardStore.selectedDashboard); + showModal( + , + { right: true } + ); + }; + if (!dashboard) return null; return ( @@ -136,7 +149,7 @@ function DashboardView(props: Props) { distance={20} html={
} > -