ui: Remove title and type from config schema

This commit is contained in:
Ilija Lazoroski 2021-07-16 09:31:14 +02:00
parent 8ee3ab4317
commit 752ea6af10
4 changed files with 2 additions and 10 deletions

View File

@ -10,8 +10,6 @@ BASIC_NETWORK = {
"type": "object",
"properties": {
"info_box": {
"title": "",
"type": "text",
"info": 'The Monkey scans its subnet if "Local network scan" is checked. '
'Additionally, the Monkey scans machines according to "Scan '
'target list".',

View File

@ -23,8 +23,6 @@ RANSOMWARE = {
"in the files contained within the target directories.",
},
"info_box": {
"title": "",
"type": "text",
"info": "No files will be encrypted if a directory is not specified or doesn't "
"exist on a victim machine.",
},
@ -53,8 +51,6 @@ RANSOMWARE = {
},
},
"text_box": {
"title": "",
"type": "text",
"text": "Note: A README.txt will be left in the specified target " "directory.",
},
},

View File

@ -4,9 +4,7 @@ class TextBox extends React.Component {
render() {
return (
<>
<p>{this.props.schema.text}</p>
</>
);
}
}

View File

@ -58,7 +58,7 @@ class ConfigurePageComponent extends AuthComponent {
}
getSectionsOrder() {
let islandMode = 'advanced'
let islandMode = this.props.islandMode ? this.props.islandMode : 'advanced'
return CONFIGURATION_TABS_PER_MODE[islandMode];
}