Merge pull request #1330 from guardicore/1324/submit-config-warning
Fix submit config when nothing is changed on Ransomware and Network
This commit is contained in:
commit
7b695e6574
|
@ -10,8 +10,6 @@ BASIC_NETWORK = {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"info_box": {
|
"info_box": {
|
||||||
"title": "",
|
|
||||||
"type": "object",
|
|
||||||
"info": 'The Monkey scans its subnet if "Local network scan" is checked. '
|
"info": 'The Monkey scans its subnet if "Local network scan" is checked. '
|
||||||
'Additionally, the Monkey scans machines according to "Scan '
|
'Additionally, the Monkey scans machines according to "Scan '
|
||||||
'target list".',
|
'target list".',
|
||||||
|
|
|
@ -23,8 +23,6 @@ RANSOMWARE = {
|
||||||
"in the files contained within the target directories.",
|
"in the files contained within the target directories.",
|
||||||
},
|
},
|
||||||
"info_box": {
|
"info_box": {
|
||||||
"title": "",
|
|
||||||
"type": "object",
|
|
||||||
"info": "No files will be encrypted if a directory is not specified or doesn't "
|
"info": "No files will be encrypted if a directory is not specified or doesn't "
|
||||||
"exist on a victim machine.",
|
"exist on a victim machine.",
|
||||||
},
|
},
|
||||||
|
@ -52,11 +50,8 @@ RANSOMWARE = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"readme_note": {
|
"text_box": {
|
||||||
"title": "",
|
"text": "Note: A README.txt will be left in the specified target " "directory.",
|
||||||
"type": "object",
|
|
||||||
"description": "Note: A README.txt will be left in the specified target "
|
|
||||||
"directory.",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
|
||||||
|
class TextBox extends React.Component {
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<p>{this.props.schema.text}</p>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default TextBox;
|
|
@ -2,6 +2,7 @@ import AdvancedMultiSelect from '../ui-components/AdvancedMultiSelect';
|
||||||
import PbaInput from './PbaInput';
|
import PbaInput from './PbaInput';
|
||||||
import {API_PBA_LINUX, API_PBA_WINDOWS} from '../pages/ConfigurePage';
|
import {API_PBA_LINUX, API_PBA_WINDOWS} from '../pages/ConfigurePage';
|
||||||
import InfoBox from './InfoBox';
|
import InfoBox from './InfoBox';
|
||||||
|
import TextBox from './TextBox';
|
||||||
|
|
||||||
export default function UiSchema(props) {
|
export default function UiSchema(props) {
|
||||||
const UiSchema = {
|
const UiSchema = {
|
||||||
|
@ -79,6 +80,9 @@ export default function UiSchema(props) {
|
||||||
directories: {
|
directories: {
|
||||||
// Directory inputs are dynamically hidden
|
// Directory inputs are dynamically hidden
|
||||||
},
|
},
|
||||||
|
text_box: {
|
||||||
|
'ui:field': TextBox
|
||||||
|
},
|
||||||
enabled: {'ui:widget': 'hidden'}
|
enabled: {'ui:widget': 'hidden'}
|
||||||
},
|
},
|
||||||
other_behaviors : {'ui:widget': 'hidden'}
|
other_behaviors : {'ui:widget': 'hidden'}
|
||||||
|
|
Loading…
Reference in New Issue