From cc2cb54851fb536e39366490969239d2cfbc574b Mon Sep 17 00:00:00 2001 From: Dimitris Efstathiou Date: Thu, 7 Dec 2023 12:20:39 +0200 Subject: [PATCH] pkp/pkp-lib#7505 Review Changes --- .../jats/SubmissionJatsListPanel.vue | 30 ++++--------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/src/components/ListPanel/jats/SubmissionJatsListPanel.vue b/src/components/ListPanel/jats/SubmissionJatsListPanel.vue index cc0a2ea49..e342612a8 100644 --- a/src/components/ListPanel/jats/SubmissionJatsListPanel.vue +++ b/src/components/ListPanel/jats/SubmissionJatsListPanel.vue @@ -65,7 +65,7 @@ :files="newJatsFiles" :options="options" :queryParams="{fileStage}" - :uploadProgressLabel="uploadProgressLabel" + upload-progress-label="Uploading {$percent}% complete" @updated:files="setJatsFile" /> @@ -107,10 +107,6 @@ export default { type: Object, required: true, }, - uploadProgressLabel: { - type: String, - required: true, - }, fileStage: { type: Number, required: true, @@ -122,22 +118,6 @@ export default { return []; }, }, - i18nConfirmDeleteFileTitle: { - type: String, - required: true, - }, - i18nDeleteFileMessage: { - type: String, - required: true, - }, - i18nConfirmDeleteFileButton: { - type: String, - required: true, - }, - i18nLastModifiedAt: { - type: String, - required: true, - }, downloadDefaultJatsFileName: { type: String, required: false, @@ -178,7 +158,7 @@ export default { var actual = ''; if (!this.isDefaultContent) { - actual = this.i18nLastModifiedAt.replace( + actual = this.t('publication.jats.lastModified').replace( '{$modificationDate}', this.workingJatsProps.updatedAt, ); @@ -236,11 +216,11 @@ export default { openDeleteModal() { this.openDialog({ name: 'delete', - title: this.i18nConfirmDeleteFileTitle, - message: this.i18nDeleteFileMessage, + title: this.t('publication.jats.confirmDeleteFileTitle'), + message: this.t('publication.jats.confirmDeleteFileMessage'), actions: [ { - label: this.i18nConfirmDeleteFileButton, + label: this.t('publication.jats.confirmDeleteFileButton'), isWarnable: true, callback: (close) => { this.isLoading = true;