-
+
{intl.formatMessage(messages.archiveComponentsCount, {
- count: restoreStatus.result.components,
+ countSections: restoreStatus.result.sections,
+ countSubsections: restoreStatus.result.subsections,
+ countUnits: restoreStatus.result.units,
+ countComponents: restoreStatus.result.components,
})}
+ {
+ (restoreStatus.result.createdBy?.email && restoreStatus.result.createdOnServer) && (
+
+
+
+ {intl.formatMessage(messages.archiveRestoredCreatedBy, {
+ createdBy: restoreStatus.result.createdBy?.email,
+ server: restoreStatus.result.createdOnServer,
+ })}
+
+
+ )
+ }
-
+
{intl.formatMessage(messages.archiveBackupDate, {
date: new Date(restoreStatus.result.createdAt).toLocaleDateString(),
diff --git a/src/library-authoring/create-library/messages.ts b/src/library-authoring/create-library/messages.ts
index 190c9a5831..846b6bd5e2 100644
--- a/src/library-authoring/create-library/messages.ts
+++ b/src/library-authoring/create-library/messages.ts
@@ -120,8 +120,13 @@ const messages = defineMessages({
},
archiveComponentsCount: {
id: 'course-authoring.library-authoring.create-library.form.archive.components-count',
- defaultMessage: 'Contains {count} Components',
- description: 'Text showing the number of components in the restored archive.',
+ defaultMessage: 'Contains {countSections} sections, {countSubsections} subsections, {countUnits} units, {countComponents} components',
+ description: 'Text showing the number of sections, subsections, units, and components in the restored archive.',
+ },
+ archiveRestoredCreatedBy: {
+ id: 'course-authoring.library-authoring.create-library.form.archive.restored-created-by',
+ defaultMessage: 'Created on instance {server}, by user {createdBy}',
+ description: 'Text showing who restored the archive.',
},
archiveBackupDate: {
id: 'course-authoring.library-authoring.create-library.form.archive.backup-date',