Dashboards: Add link to documentation in repeated row warning (#73838)

This commit is contained in:
Juan Cabanas 2023-09-01 15:36:57 -03:00 committed by GitHub
parent 71cf9341b6
commit 5b28e0b57c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<DashboardRowProps> {
const isAnyPanelUsingDashboardDS = panels.some((p) => p.datasource?.uid === SHARED_DASHBOARD_QUERY);
if (isAnyPanelUsingDashboardDS) {
return (
<p>
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.
</p>
<div>
<p>
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.
</p>
<TextLink
external
href={
'https://grafana.com/docs/grafana/next/dashboards/build-dashboards/create-dashboard/#configure-repeating-rows'
}
>
Learn more
</TextLink>
</div>
);
}