From 91feb144e40560c3e43813090dec86ded74c2bc6 Mon Sep 17 00:00:00 2001 From: Elena Sasova Date: Thu, 21 Jul 2022 15:42:59 +0200 Subject: [PATCH] fix: add unknown state placeholder --- public/locales/en/translation.json | 3 +++ public/locales/fr/translation.json | 5 ++++- src/views/Scenario/labels.js | 11 ++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index ec95f8ad4..ee4edd00b 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -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", diff --git a/public/locales/fr/translation.json b/public/locales/fr/translation.json index f83c330b5..25f821a8e 100644 --- a/public/locales/fr/translation.json +++ b/public/locales/fr/translation.json @@ -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": { diff --git a/src/views/Scenario/labels.js b/src/views/Scenario/labels.js index fbf9979b7..34a93c804 100644 --- a/src/views/Scenario/labels.js +++ b/src/views/Scenario/labels.js @@ -51,7 +51,10 @@ 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...'), @@ -59,6 +62,12 @@ export const getReportLabels = (t) => ({ 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: {