diff --git a/lib/ReactViews/Map/Panels/SharePanel/ShareUrl/ShareUrl.tsx b/lib/ReactViews/Map/Panels/SharePanel/ShareUrl/ShareUrl.tsx index 09de0cc39e..ff4fec82b3 100644 --- a/lib/ReactViews/Map/Panels/SharePanel/ShareUrl/ShareUrl.tsx +++ b/lib/ReactViews/Map/Panels/SharePanel/ShareUrl/ShareUrl.tsx @@ -110,17 +110,21 @@ export const ShareUrl = forwardRef< /* eslint-disable-next-line react-hooks/exhaustive-deps */ }, [terria, viewState, shouldShorten, includeStories]); + const hasStory = includeStories && terria.stories && terria.stories.length; + return ( <> - {t("clipboard.shareExplanation")} + + {hasStory + ? t("clipboard.storyExplanation") + : t("clipboard.shareExplanation")} + 0 - ? t("share.storyLinkCreated") - : t("share.shareLinkCreated") + hasStory ? t("share.storyLinkCreated") : t("share.shareLinkCreated") } onCopy={(text) => terria.analytics?.logEvent( diff --git a/lib/ReactViews/Story/StoryBuilder.tsx b/lib/ReactViews/Story/StoryBuilder.tsx index 0bd5457d52..8eb27b0263 100644 --- a/lib/ReactViews/Story/StoryBuilder.tsx +++ b/lib/ReactViews/Story/StoryBuilder.tsx @@ -429,7 +429,7 @@ class StoryBuilder extends Component< /> - {t("story.saveInstructions")} + )} diff --git a/wwwroot/languages/en/translation.json b/wwwroot/languages/en/translation.json index 96b2d25382..7f1c85240f 100644 --- a/wwwroot/languages/en/translation.json +++ b/wwwroot/languages/en/translation.json @@ -231,7 +231,7 @@ "convertErrorMessage": "This share link is based on an older version of TerriaJS - the software powering this web map. An error has occurred trying to upgrade the share data.", "getShareSaveHelpMessage": "How to Bookmark Sharelinks", "shareStoryLink": "Share story link", - "storyLinkCreated": "Story link created", + "storyLinkCreated": "Saved as new story", "shareLinkCreated": "Share link created" }, "countDatasets": { @@ -625,6 +625,7 @@ "unsuccessful": "Copy unsuccessful...", "shareURL": "Share link", "shareExplanation": "Anyone with this link will be able to access this map.", + "storyExplanation": "Anyone with this link will be able to access this map.", "copy": "Copy" }, "includeStory": {