From bbf6631135a05fd15ce11181ed3826cb3792340b Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Fri, 7 Apr 2023 12:47:28 -0400 Subject: [PATCH] :bug: Fix label for targets screen selection (#804) Fixes https://issues.redhat.com/browse/MTA-430 Signed-off-by: ibolton336 --- client/public/locales/en/translation.json | 2 +- client/public/locales/es/translation.json | 2 +- .../src/app/pages/applications/analysis-wizard/set-options.tsx | 1 - .../src/app/pages/applications/analysis-wizard/set-targets.tsx | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client/public/locales/en/translation.json b/client/public/locales/en/translation.json index 9a664a6bd4..4c899e6fa7 100644 --- a/client/public/locales/en/translation.json +++ b/client/public/locales/en/translation.json @@ -359,7 +359,7 @@ "noCustomRules": "No custom rules available", "notAllAnalyzable": "Some applications cannot be analyzed", "notAllAnalyzableDetails": "Some of the selected applications cannot be analyzed with the selected source because those values have not been defined. By continuing, these applications won't be included in the analysis.", - "ruleFileRequired": "Target or rule file required", + "skipTargets": "Target selection can be skipped if custom rules file(s) are used", "ruleFileRequiredDetails": "At least one custom rule file is required if no targets are selected.", "packageToInclude": "Add a package to include", "packageIncluded": "This package is already included", diff --git a/client/public/locales/es/translation.json b/client/public/locales/es/translation.json index 64a084fb13..2f26818aee 100644 --- a/client/public/locales/es/translation.json +++ b/client/public/locales/es/translation.json @@ -345,7 +345,7 @@ "noCustomRules": "No custom rules personalizadas disponibles", "notAllAnalyzable": "Algunas aplicaciones no se pueden analizar", "notAllAnalyzableDetails": "Algunas de las aplicaciones seleccionadas no se pueden analizar con la fuente seleccionada porque esos valores no se han definido. Si continúa, estas aplicaciones no se incluirán en el análisis.", - "ruleFileRequired": "Se requiere un archivo de destino o regla.", + "skipTargets": "La selección de destino se puede omitir si se utilizan archivos de reglas personalizadas", "ruleFileRequiredDetails": "Se requiere al menos un archivo de reglas personalizadas si no se seleccionan objetivos.", "packageToInclude": "Agregar un paquete para incluir", "packageIncluded": "Este paquete ya está incluido.", diff --git a/client/src/app/pages/applications/analysis-wizard/set-options.tsx b/client/src/app/pages/applications/analysis-wizard/set-options.tsx index c6b0a9b6fb..ff6b3731ad 100644 --- a/client/src/app/pages/applications/analysis-wizard/set-options.tsx +++ b/client/src/app/pages/applications/analysis-wizard/set-options.tsx @@ -68,7 +68,6 @@ export const SetOptions: React.FC = () => { name="formTargets" label={t("wizard.terms.targets")} fieldId="targets" - isRequired renderInput={({ field: { onChange, onBlur, value: selectedFormTargets }, fieldState: { isTouched, error }, diff --git a/client/src/app/pages/applications/analysis-wizard/set-targets.tsx b/client/src/app/pages/applications/analysis-wizard/set-targets.tsx index 907912ad08..406ac4a4ee 100644 --- a/client/src/app/pages/applications/analysis-wizard/set-targets.tsx +++ b/client/src/app/pages/applications/analysis-wizard/set-targets.tsx @@ -126,7 +126,7 @@ export const SetTargets: React.FC = () => { )}