ui: Remove title and type from config schema
This commit is contained in:
parent
8ee3ab4317
commit
752ea6af10
|
@ -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".',
|
||||
|
|
|
@ -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.",
|
||||
},
|
||||
},
|
||||
|
|
|
@ -4,9 +4,7 @@ class TextBox extends React.Component {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<p>{this.props.schema.text} </p>
|
||||
</>
|
||||
<p>{this.props.schema.text}</p>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue