From a2de893ab3d99fae36479251809f3e04a6fed561 Mon Sep 17 00:00:00 2001 From: Lucy Chen <140550297+lucychen-grafana@users.noreply.github.com> Date: Mon, 26 Aug 2024 09:56:48 -0400 Subject: [PATCH] ShareModal: Change public dashboard text to shared dashboard (#92327) * update text * update link --- .../PublicDashboardListTable.tsx | 54 +++++++++++++------ public/locales/en-US/grafana.json | 4 ++ public/locales/pseudo-LOCALE/grafana.json | 4 ++ 3 files changed, 45 insertions(+), 17 deletions(-) diff --git a/public/app/features/manage-dashboards/components/PublicDashboardListTable/PublicDashboardListTable.tsx b/public/app/features/manage-dashboards/components/PublicDashboardListTable/PublicDashboardListTable.tsx index a50d149cee7..171289c149a 100644 --- a/public/app/features/manage-dashboards/components/PublicDashboardListTable/PublicDashboardListTable.tsx +++ b/public/app/features/manage-dashboards/components/PublicDashboardListTable/PublicDashboardListTable.tsx @@ -145,23 +145,43 @@ export const PublicDashboardListTable = () => { {!isLoading && !isError && !!paginatedPublicDashboards && (
{paginatedPublicDashboards.publicDashboards.length === 0 ? ( - - - Create a public dashboard from any existing dashboard through the Share modal.{' '} - - Learn more - - - + config.featureToggles.newDashboardSharingComponent ? ( + + + Create a shared dashboard from any existing dashboard through the Share modal.{' '} + + Learn more + + + + ) : ( + + + Create a public dashboard from any existing dashboard through the Share modal.{' '} + + Learn more + + + + ) ) : ( <>