From af42f31fe646b496a11e476b9c45082ff2f057a6 Mon Sep 17 00:00:00 2001 From: Juan Cabanas Date: Wed, 18 Sep 2024 11:53:02 +0100 Subject: [PATCH] ShareDrawer: Update documentation link buttons (#93339) --- .../sharing/ShareButton/share-snapshot/UpsertSnapshot.tsx | 6 +++--- .../ModalAlerts/EmailSharingPricingAlert.tsx | 3 ++- .../ModalAlerts/PublicDashboardAlert.tsx | 3 ++- .../ModalAlerts/UnsupportedDataSourcesAlert.tsx | 6 +++++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/public/app/features/dashboard-scene/sharing/ShareButton/share-snapshot/UpsertSnapshot.tsx b/public/app/features/dashboard-scene/sharing/ShareButton/share-snapshot/UpsertSnapshot.tsx index 6dbd3a5dcb9..5458db42ec1 100644 --- a/public/app/features/dashboard-scene/sharing/ShareButton/share-snapshot/UpsertSnapshot.tsx +++ b/public/app/features/dashboard-scene/sharing/ShareButton/share-snapshot/UpsertSnapshot.tsx @@ -11,9 +11,9 @@ import { Trans } from 'app/core/internationalization'; import { getExpireOptions } from '../../ShareSnapshotTab'; const DASHBOARD_SNAPSHOT_URL = - 'https://grafana.com/docs/grafana/latest/dashboards/share-dashboards-panels/#publish-a-snapshot'; -const PANEL_SNAPSHOT_URL = - 'https://grafana.com/docs/grafana/latest/dashboards/share-dashboards-panels/#publish-a-snapshot-1'; + 'https://grafana.com/docs/grafana/next/dashboards/share-dashboards-panels/#share-a-snapshot'; + +const PANEL_SNAPSHOT_URL = 'https://grafana.com/docs/grafana/next/dashboards/share-dashboards-panels/#panel-snapshot'; interface Props { name: string; diff --git a/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/EmailSharingPricingAlert.tsx b/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/EmailSharingPricingAlert.tsx index a706395f193..969c25ba8bb 100644 --- a/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/EmailSharingPricingAlert.tsx +++ b/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/EmailSharingPricingAlert.tsx @@ -2,7 +2,8 @@ import { selectors as e2eSelectors } from '@grafana/e2e-selectors'; import { Alert, Button, Stack } from '@grafana/ui'; import { Trans } from 'app/core/internationalization'; -const EMAIL_SHARING_URL = 'https://grafana.com/docs/grafana/latest/dashboards/dashboard-public/#email-sharing'; +const EMAIL_SHARING_URL = + 'https://grafana.com/docs/grafana/next/dashboards/share-dashboards-panels/shared-dashboards/#share-externally-with-specific-people'; const selectors = e2eSelectors.pages.ShareDashboardDrawer.ShareExternally; diff --git a/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/PublicDashboardAlert.tsx b/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/PublicDashboardAlert.tsx index 8a90d27afcb..6d44248de50 100644 --- a/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/PublicDashboardAlert.tsx +++ b/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/PublicDashboardAlert.tsx @@ -3,7 +3,8 @@ import { Alert, Button, Stack } from '@grafana/ui'; import { Trans } from '../../../../../../core/internationalization'; -const PUBLIC_DASHBOARD_URL = 'https://grafana.com/docs/grafana/latest/dashboards/dashboard-public/'; +const PUBLIC_DASHBOARD_URL = + 'https://grafana.com/docs/grafana/next/dashboards/share-dashboards-panels/shared-dashboards'; const selectors = e2eSelectors.pages.ShareDashboardDrawer.ShareExternally; diff --git a/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/UnsupportedDataSourcesAlert.tsx b/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/UnsupportedDataSourcesAlert.tsx index 58fb31ec130..0555533b905 100644 --- a/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/UnsupportedDataSourcesAlert.tsx +++ b/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/UnsupportedDataSourcesAlert.tsx @@ -33,7 +33,11 @@ export const UnsupportedDataSourcesAlert = ({ unsupportedDataSources }: { unsupp )}