diff --git a/src/components/ListPanel/jats/SubmissionJatsListPanel.vue b/src/components/ListPanel/jats/SubmissionJatsListPanel.vue index 01ca68bc3..83475f7f3 100644 --- a/src/components/ListPanel/jats/SubmissionJatsListPanel.vue +++ b/src/components/ListPanel/jats/SubmissionJatsListPanel.vue @@ -41,16 +41,12 @@ {{ workingJatsContent }} -
- Last Modification at - {{ existingJatsFile.updatedAt }} - by - {{ existingJatsFile.uploaderUserName }} + {{ lastModifiedAtActual }}
@@ -141,6 +137,10 @@ export default { type: String, required: true, }, + i18nLastModifiedAt: { + type: String, + required: true, + }, downloadDefaultJatsFileName: { type: String, required: false, @@ -174,14 +174,6 @@ export default { return this.defaultJatsContent; } }, - isDefault() { - if (this.existingJatsFile) { - return false; - } else { - return true; - } - }, - /** * URL to the API endpoint for the current publication */ @@ -191,6 +183,24 @@ export default { this.publication.id, ); }, + + lastModifiedAtActual() { + var actual = ''; + + if (this.existingJatsFile) { + actual = this.i18nLastModifiedAt.replace( + '{$modificationDate}', + this.existingJatsFile.updatedAt, + ); + + actual = actual.replace( + '{$username}', + this.existingJatsFile.uploaderUserName, + ); + } + + return actual; + } }, methods: { fetchWorkingJatsFile() {