Skip to content

Commit

Permalink
add copy to account for behaviour of temp dashboard link with panel c…
Browse files Browse the repository at this point in the history
…hanges
  • Loading branch information
eokoneyo committed Nov 18, 2024
1 parent c055b30 commit 11cf71f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ export const shareModalStrings = {
getDraftSharePanelChangesWarning: () =>
i18n.translate('dashboard.snapshotShare.panelChangesWarning', {
defaultMessage:
'One or more panels on this dashboard have changed. Before generating a link, save the dashboard.',
'You are about to share a dashboard with unsaved changes, and the link may not work properly. Save the dashboard first to create a permanent link.',
}),
getEmbedShareWarning: () =>
getEmbedSharePanelChangesWarning: () =>
i18n.translate('dashboard.embedShare.draftWarning', {
defaultMessage:
'You are about to create an embedded dashboard with unsaved changes, and the embed code may not work properly. Save the dashboard first to create a permanent embedded dashboard.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ export function ShowShareModal({
/>
}
>
{shareModalStrings.getEmbedShareWarning()}
{Boolean(unsavedDashboardState?.panels)
? shareModalStrings.getEmbedSharePanelChangesWarning()
: shareModalStrings.getDraftShareWarning()}
</EuiCallOut>
),
},
Expand Down

0 comments on commit 11cf71f

Please sign in to comment.