Skip to content

Commit 1584705

Browse files
131410: add support for upload success but with required metadata not filled.
1 parent aa1779f commit 1584705

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/submission/form/submission-upload-files/submission-upload-files.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,23 +158,23 @@ export class SubmissionUploadFilesComponent implements OnChanges, OnDestroy {
158158
if (isUpload) {
159159
// Look for errors on upload
160160
const hasOnlyPendingMetadataErrors = sectionErrors?.every(
161-
(error) => error.message === 'error.validation.metadata.pending'
161+
(error) => error.message === 'error.validation.metadata.pending',
162162
);
163163

164164
if (isEmpty(sectionErrors)) {
165165
this.notificationsService.success(
166166
null,
167-
this.translate.get('submission.sections.upload.upload-successful')
167+
this.translate.get('submission.sections.upload.upload-successful'),
168168
);
169169
} else if (hasOnlyPendingMetadataErrors) {
170170
this.notificationsService.warning(
171171
null,
172-
this.translate.get('submission.sections.upload.metadata-pending')
172+
this.translate.get('submission.sections.upload.metadata-pending'),
173173
);
174174
} else {
175175
this.notificationsService.error(
176176
null,
177-
this.translate.get('submission.sections.upload.upload-failed')
177+
this.translate.get('submission.sections.upload.upload-failed'),
178178
);
179179
}
180180
}

src/assets/i18n/en.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5649,7 +5649,7 @@
56495649
"submission.sections.upload.save-metadata": "Save metadata",
56505650

56515651
"submission.sections.upload.undo": "Cancel",
5652-
5652+
56535653
"submission.sections.upload.metadata-pending": "Upload successful. There are required fields for the file. Scroll to the \"Upload files\" section to view and edit uploaded files.",
56545654

56555655
"submission.sections.upload.upload-failed": "Upload failed",

0 commit comments

Comments
 (0)