Skip to content

Commit

Permalink
fix: add unknown state placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
esasova committed Jul 21, 2022
1 parent c32c9bc commit 91feb14
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@
"nodashboard": {
"label": "There isn't any dashboard configured for this run template"
},
"unknownStatus": {
"label": "This scenario has an unknown state, if the problem persists, please, contact your administrator"
},
"error": {
"unknown": {
"details": "Something went wrong when fetching PowerBI reports info",
Expand Down
5 changes: 4 additions & 1 deletion public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@
"label": "Vous pouvez créer un scénario en cliquant sur \"Créer un scénario\""
},
"nodashboard": {
"label": "Aucun dashboard n'a pas été configuré pour ce type de scénario"
"label": "Aucun dashboard configuré pour ce type de scénario"
},
"unknownStatus": {
"label": "Le scénario a un statut inconnu, si le problème persiste, merci de contacter votre administrateur"
},
"error": {
"unknown": {
Expand Down
11 changes: 10 additions & 1 deletion src/views/Scenario/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,23 @@ export const getReportLabels = (t) => ({
label: t('commoncomponents.iframe.scenario.results.label.uninitialized', 'The scenario has not been run yet'),
},
noDashboard: {
label: t('commoncomponents.iframe.scenario.nodashboard.label'),
label: t(
'commoncomponents.iframe.scenario.nodashboard.label',
"There isn't any dashboard configured for this run template"
),
},
inProgress: {
label: t('commoncomponents.iframe.scenario.results.label.running', 'Scenario run in progress...'),
},
hasErrors: {
label: t('commoncomponents.iframe.scenario.results.text.error', 'An error occured during the scenario run'),
},
hasUnknownStatus: {
label: t(
'commoncomponents.iframe.scenario.unknownStatus.label',
'This scenario has an unknown state, if the problem persists, please, contact your administrator'
),
},
downloadButton: t('commoncomponents.iframe.scenario.results.button.downloadLogs', 'Download logs'),
refreshTooltip: t('commoncomponents.iframe.scenario.results.button.refresh', 'Refresh'),
errors: {
Expand Down

0 comments on commit 91feb14

Please sign in to comment.