From a82850cb647ba5f12c6608ac9c48df7b9f372451 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Wed, 30 Jun 2021 14:13:01 +0300 Subject: [PATCH] Add ransomware directories property to UISchema object This addition is required to manipulate the UI components in ransomware configuration UI without the need to create object's properties. Otherwise we'd have to create ransomware.encryption.directories in UI schema using code. --- .../ui/src/components/configuration-components/UiSchema.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js b/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js index ac9104817..79dced094 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js @@ -71,6 +71,13 @@ export default function UiSchema(props) { } } }, + ransomware: { + encryption: { + directories: { + // Directory inputs are dynamically hidden + } + } + }, internal: { general: { started_on_island: {'ui:widget': 'hidden'}