diff --git a/public/locales/en/publishDataset.json b/public/locales/en/publishDataset.json index 705cb86e2..0fecae670 100644 --- a/public/locales/en/publishDataset.json +++ b/public/locales/en/publishDataset.json @@ -1,8 +1,9 @@ { - "draftQuestion": "Are you sure you want to publish this dataset? Once you do so, it must remain public", + "draftQuestion": "Are you sure you want to publish this dataset? Once you do so, it must remain public.", "previouslyReleasedQuestion": "Are you sure you want to republish this dataset?", - "termsText1": "By default datasets are published with the CC0-\"Public Domain Dedication\" waiver. Learn more about the CC0 waiver here: ", - "termsText2": "To publish with custom Terms of Use, click the Cancel button and go to the Terms tab for this dataset.", + "termsText1": "By default datasets are published with the CC0-\"Public Domain Dedication\" waiver. Learn more about the CC0 waiver here: ", + "termsText2": "To publish with custom Terms of Use, click the Cancel button and go to the Terms tab for this dataset.", + "selectVersion": "Select if this is a minor or major version update.", "continueButton": "Continue", "cancelButton": "Cancel" diff --git a/src/sections/dataset/publish-dataset/PublishDatasetHelpText.module.scss b/src/sections/dataset/publish-dataset/PublishDatasetHelpText.module.scss new file mode 100644 index 000000000..5c09de4ba --- /dev/null +++ b/src/sections/dataset/publish-dataset/PublishDatasetHelpText.module.scss @@ -0,0 +1,12 @@ +@import "node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module"; + +.container { + border: 1px solid black; + padding: 10px; + margin: 10px; + background-color: rgb(220, 220, 220); +} + +.warningText { + color: $dv-warning-color; +} \ No newline at end of file diff --git a/src/sections/dataset/publish-dataset/PublishDatasetHelpText.tsx b/src/sections/dataset/publish-dataset/PublishDatasetHelpText.tsx index 0c5c55995..9726b3668 100644 --- a/src/sections/dataset/publish-dataset/PublishDatasetHelpText.tsx +++ b/src/sections/dataset/publish-dataset/PublishDatasetHelpText.tsx @@ -1,3 +1,4 @@ +import styles from './PublishDatasetHelpText.module.scss' import { useTranslation } from 'react-i18next' import { Trans } from 'react-i18next' @@ -10,15 +11,11 @@ export function PublishDatasetHelpText({ releasedVersionExists }: PublishDataset const cc0Link = 'https://creativecommons.org/publicdomain/zero/1.0/' return ( <> - {!releasedVersionExists &&
{t('draftQuestion')}
} - {releasedVersionExists &&{t('previouslyReleasedQuestion')}
} -{t('draftQuestion')}
} + {releasedVersionExists && ( +{t('previouslyReleasedQuestion')}
+ )} +Click to Publish the Dataset
{releasedVersionExists && ( -{t('selectVersion')}
+