diff --git a/public/locales/en/createDataset.json b/public/locales/en/createDataset.json index b2a2f369c..97686068a 100644 --- a/public/locales/en/createDataset.json +++ b/public/locales/en/createDataset.json @@ -5,6 +5,10 @@ "content": "After adding the dataset, click the Edit Dataset button to add more metadata." }, "requiredFields": "Asterisks indicate required fields", + "validationAlert": { + "title": "Validation Error", + "content": "Required fields were missed or there was a validation error. Please scroll down to see details." + }, "datasetForm": { "fields": { "title": { diff --git a/public/locales/en/dataset.json b/public/locales/en/dataset.json index 54dad4532..ff7201668 100644 --- a/public/locales/en/dataset.json +++ b/public/locales/en/dataset.json @@ -82,6 +82,10 @@ "heading": "Success!", "alertText": "This dataset draft has been deleted." }, + "datasetCreated": { + "heading": "Success!", + "alertText": "This dataset has been created." + }, "metadataUpdated": { "heading": "Success!", "alertText": "The metadata for this dataset has been updated." diff --git a/src/alert/domain/models/Alert.ts b/src/alert/domain/models/Alert.ts index d48051847..88d0dbfe9 100644 --- a/src/alert/domain/models/Alert.ts +++ b/src/alert/domain/models/Alert.ts @@ -11,6 +11,7 @@ export enum AlertMessageKey { TERMS_UPDATED = 'termsUpdated', THUMBNAIL_UPDATED = 'thumbnailUpdated', DATASET_DELETED = 'datasetDeleted', + DATASET_CREATED = 'datasetCreated', PUBLISH_IN_PROGRESS = 'publishInProgress' } diff --git a/src/sections/create-dataset/CreateDatasetForm.tsx b/src/sections/create-dataset/CreateDatasetForm.tsx index 3a9800754..77bac6176 100644 --- a/src/sections/create-dataset/CreateDatasetForm.tsx +++ b/src/sections/create-dataset/CreateDatasetForm.tsx @@ -61,7 +61,11 @@ export function CreateDatasetForm({ repository }: CreateDatasetFormProps) { {submissionStatus === SubmissionStatus.SubmitComplete && (
{t('datasetForm.status.success')}
)} - {submissionStatus === SubmissionStatus.Errored &&{t('datasetForm.status.failed')}
} + {submissionStatus === SubmissionStatus.Errored && ( +