diff --git a/monkey/monkey_island/cc/services/config_schema/basic_network.py b/monkey/monkey_island/cc/services/config_schema/basic_network.py index e1dd95c17..eceda4828 100644 --- a/monkey/monkey_island/cc/services/config_schema/basic_network.py +++ b/monkey/monkey_island/cc/services/config_schema/basic_network.py @@ -10,8 +10,6 @@ BASIC_NETWORK = { "type": "object", "properties": { "info_box": { - "title": "", - "type": "object", "info": 'The Monkey scans its subnet if "Local network scan" is checked. ' 'Additionally, the Monkey scans machines according to "Scan ' 'target list".', diff --git a/monkey/monkey_island/cc/services/config_schema/ransomware.py b/monkey/monkey_island/cc/services/config_schema/ransomware.py index 03c5e8438..dd77a175d 100644 --- a/monkey/monkey_island/cc/services/config_schema/ransomware.py +++ b/monkey/monkey_island/cc/services/config_schema/ransomware.py @@ -23,8 +23,6 @@ RANSOMWARE = { "in the files contained within the target directories.", }, "info_box": { - "title": "", - "type": "object", "info": "No files will be encrypted if a directory is not specified or doesn't " "exist on a victim machine.", }, @@ -52,11 +50,8 @@ RANSOMWARE = { }, }, }, - "readme_note": { - "title": "", - "type": "object", - "description": "Note: A README.txt will be left in the specified target " - "directory.", + "text_box": { + "text": "Note: A README.txt will be left in the specified target " "directory.", }, }, }, diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/TextBox.js b/monkey/monkey_island/cc/ui/src/components/configuration-components/TextBox.js new file mode 100644 index 000000000..4d24ddb0a --- /dev/null +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/TextBox.js @@ -0,0 +1,12 @@ +import * as React from 'react'; + +class TextBox extends React.Component { + + render() { + return ( +
{this.props.schema.text}
+ ); + } +} + +export default TextBox; 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 5d1211407..38e7ad244 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 @@ -2,6 +2,7 @@ import AdvancedMultiSelect from '../ui-components/AdvancedMultiSelect'; import PbaInput from './PbaInput'; import {API_PBA_LINUX, API_PBA_WINDOWS} from '../pages/ConfigurePage'; import InfoBox from './InfoBox'; +import TextBox from './TextBox'; export default function UiSchema(props) { const UiSchema = { @@ -79,6 +80,9 @@ export default function UiSchema(props) { directories: { // Directory inputs are dynamically hidden }, + text_box: { + 'ui:field': TextBox + }, enabled: {'ui:widget': 'hidden'} }, other_behaviors : {'ui:widget': 'hidden'}