@@ -95,7 +95,7 @@ function DashboardView(props: Props) {
Add Metric
}
/>
-
+
@@ -132,9 +132,9 @@ function DashboardView(props: Props) {
- ));
+ );
}
export default withPageTitle('Dashboards - OpenReplay')(
- withReport(withRouter(withModal(DashboardView)))
-);
\ No newline at end of file
+ withReport(withRouter(withModal(observer(DashboardView))))
+);
diff --git a/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx b/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx
index f9f5e6d96..cbeb4ee4e 100644
--- a/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx
+++ b/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx
@@ -9,12 +9,14 @@ interface Props {
function DashboardLink({ dashboards}) {
return (
dashboards.map(dashboard => (
+
+
))
);
}
@@ -44,4 +46,4 @@ function MetricListItem(props: Props) {
);
}
-export default MetricListItem;
\ No newline at end of file
+export default MetricListItem;
diff --git a/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx b/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx
index 9d895de13..10b061c8b 100644
--- a/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx
+++ b/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx
@@ -39,7 +39,9 @@ function MetricsList(props: Props) {
{sliceListPerPage(list, metricStore.page - 1, metricStore.pageSize).map((metric: any) => (
-
@@ -222,4 +222,4 @@ function WidgetForm(props: Props) {
));
}
-export default WidgetForm;
\ No newline at end of file
+export default WidgetForm;
diff --git a/frontend/app/components/Dashboard/components/WidgetWrapper/WidgetWrapper.tsx b/frontend/app/components/Dashboard/components/WidgetWrapper/WidgetWrapper.tsx
index 8f2d5b051..cfccd664c 100644
--- a/frontend/app/components/Dashboard/components/WidgetWrapper/WidgetWrapper.tsx
+++ b/frontend/app/components/Dashboard/components/WidgetWrapper/WidgetWrapper.tsx
@@ -30,7 +30,7 @@ interface Props {
function WidgetWrapper(props: Props) {
const { dashboardStore } = useStore();
const { isWidget = false, active = false, index = 0, moveListItem = null, isPreview = false, isTemplate = false, dashboardId, siteId } = props;
- const widget: any = useObserver(() => props.widget);
+ const widget: any = useObserver(() => props.widget);
const isPredefined = widget.metricType === 'predefined';
const dashboard = useObserver(() => dashboardStore.selectedDashboard);
const isOverviewWidget = widget.widgetType === 'predefined' && widget.viewType === 'overview';
@@ -69,13 +69,13 @@ function WidgetWrapper(props: Props) {
const onChartClick = () => {
if (!isWidget || isPredefined) return;
-
+
props.history.push(withSiteId(dashboardMetricDetails(dashboard?.dashboardId, widget.metricId),siteId));
}
const ref: any = useRef(null)
const dragDropRef: any = dragRef(dropRef(ref))
-
+
return useObserver(() => (
>
)}
-
-
+
+ {!isTemplate && (
+
+ )}
)}
@@ -128,4 +130,4 @@ function WidgetWrapper(props: Props) {
));
}
-export default withRouter(WidgetWrapper);
\ No newline at end of file
+export default withRouter(WidgetWrapper);