From 457a70390c6362e7c88dc5abb72e432cb295e3c5 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 12 Jul 2022 18:26:17 +0200 Subject: [PATCH] UI: Render PropagationConfig on Propagation tab --- .../ui/src/components/pages/ConfigurePage.js | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js index 154eff52c..a8fcbbe58 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -8,6 +8,7 @@ import {faCheck} from '@fortawesome/free-solid-svg-icons/faCheck'; import {faExclamationCircle} from '@fortawesome/free-solid-svg-icons/faExclamationCircle'; import {formValidationFormats} from '../configuration-components/ValidationFormats'; import transformErrors from '../configuration-components/ValidationErrorMessages'; +import PropagationConfig from '../configuration-components/PropagationConfig' import UnsafeConfigOptionsConfirmationModal from '../configuration-components/UnsafeConfigOptionsConfirmationModal.js'; import isUnsafeOptionSelected from '../utils/SafeOptionValidator.js'; @@ -302,13 +303,18 @@ class ConfigurePageComponent extends AuthComponent { formProperties['formData'], formProperties['uiSchema']); - return ( -
-
- -
-
- ) + if (this.state.selectedSection === 'propagation') { + console.log(formProperties['uiSchema']); + return () + } else { + return ( +
+
+ +
+
+ ) + } }; setPbaFilenameWindows = (filename) => {