From 5b28e0b57c0ee1d1dd4b66830e2144cb74be95bd Mon Sep 17 00:00:00 2001 From: Juan Cabanas Date: Fri, 1 Sep 2023 15:36:57 -0300 Subject: [PATCH] Dashboards: Add link to documentation in repeated row warning (#73838) --- .../components/DashboardRow/DashboardRow.tsx | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/public/app/features/dashboard/components/DashboardRow/DashboardRow.tsx b/public/app/features/dashboard/components/DashboardRow/DashboardRow.tsx index a8f871d11a6..83b95dacd25 100644 --- a/public/app/features/dashboard/components/DashboardRow/DashboardRow.tsx +++ b/public/app/features/dashboard/components/DashboardRow/DashboardRow.tsx @@ -5,7 +5,7 @@ import { Unsubscribable } from 'rxjs'; import { selectors } from '@grafana/e2e-selectors'; import { getTemplateSrv, RefreshEvent } from '@grafana/runtime'; -import { Icon } from '@grafana/ui'; +import { Icon, TextLink } from '@grafana/ui'; import appEvents from 'app/core/app_events'; import { SHARED_DASHBOARD_QUERY } from 'app/plugins/datasource/dashboard/types'; @@ -47,10 +47,20 @@ export class DashboardRow extends React.Component { const isAnyPanelUsingDashboardDS = panels.some((p) => p.datasource?.uid === SHARED_DASHBOARD_QUERY); if (isAnyPanelUsingDashboardDS) { return ( -

- Panels in this row use the {SHARED_DASHBOARD_QUERY} data source. These panels will reference the panel in the - original row, not the ones in the repeated rows. -

+
+

+ Panels in this row use the {SHARED_DASHBOARD_QUERY} data source. These panels will reference the panel in + the original row, not the ones in the repeated rows. +

+ + Learn more + +
); }