Skip to content

Commit

Permalink
Fix stories and displayed text
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Nov 9, 2023
1 parent fec983d commit 454a46d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _dev/src/assets/json/translations/en/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"scanStatus": {
"notSubscribed": "No verification yet.",
"inProgress": "Verification in progress... {progress}",
"nbOfVerifiedProducts": "|{xProducts} verified.|{xProducts} verified.",
"nbOfVerifiedProducts": " |{xProducts} verified.|{xProducts} verified.",
"lastScanDate": "Last verification on {date} at {time}."
},
"reportCards": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default defineComponent({
},
lastScanText(): string {
if (this.scanRequestStatus === RequestState.PENDING) {
return this.$t('catalog.summaryPage.productCatalog.productVerification.scanStatus.inProgressWithProductsChecked',
return this.$t('catalog.summaryPage.productCatalog.productVerification.scanStatus.inProgress',
{
progress: this.$tc('catalog.summaryPage.productCatalog.productVerification.scanStatus.nbOfVerifiedProducts',
+this.scanProgress,
Expand Down
15 changes: 15 additions & 0 deletions _dev/stories/201-catalog-summary.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ CatalogNotShared.args = {
errored: null,
},
},
progress: {
prevalidation: null,
},
requests: {
requestNextSyncFull: RequestState.IDLE,
scan: RequestState.IDLE,
Expand Down Expand Up @@ -75,6 +78,9 @@ CatalogRecentlyShared.args = {
errored: null,
},
},
progress: {
prevalidation: null,
},
requests: {
requestNextSyncFull: RequestState.IDLE,
scan: RequestState.IDLE,
Expand Down Expand Up @@ -109,6 +115,9 @@ SyncOn.args = {
errored: 42,
},
},
progress: {
prevalidation: null,
},
requests: {
requestNextSyncFull: RequestState.IDLE,
scan: RequestState.IDLE,
Expand Down Expand Up @@ -143,6 +152,9 @@ SyncPaused.args = {
errored: 42,
},
},
progress: {
prevalidation: null,
},
requests: {
requestNextSyncFull: RequestState.IDLE,
scan: RequestState.IDLE,
Expand Down Expand Up @@ -177,6 +189,9 @@ FullConfiguration.args = {
errored: 42,
},
},
progress: {
prevalidation: null,
},
requests: {
requestNextSyncFull: RequestState.IDLE,
scan: RequestState.IDLE,
Expand Down

0 comments on commit 454a46d

Please sign in to comment.