forked from p15670423/monkey
cc: Change schema for Network configuration tab to decouple info box and blocked IPs' input field
This commit is contained in:
parent
e6c9377908
commit
677f995bb3
|
@ -9,6 +9,13 @@ BASIC_NETWORK = {
|
|||
"title": "Scope",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"info_box": {
|
||||
"title": "",
|
||||
"type": "object",
|
||||
"info": 'The Monkey scans its subnet if "Local network scan" is ticked. '
|
||||
'Additionally, the Monkey scans machines according to "Scan '
|
||||
'target list".',
|
||||
},
|
||||
"blocked_ips": {
|
||||
"title": "Blocked IPs",
|
||||
"type": "array",
|
||||
|
@ -19,9 +26,6 @@ BASIC_NETWORK = {
|
|||
},
|
||||
"default": [],
|
||||
"description": "List of IPs that the Monkey will not scan.",
|
||||
"info": 'The Monkey scans its subnet if "Local network scan" is ticked. '
|
||||
'Additionally the monkey scans machines according to "Scan '
|
||||
'target list".',
|
||||
},
|
||||
"local_network_scan": {
|
||||
"title": "Local network scan",
|
||||
|
|
|
@ -18,8 +18,8 @@ export default function UiSchema(props) {
|
|||
basic_network: {
|
||||
'ui:order': ['scope', 'network_analysis'],
|
||||
scope: {
|
||||
blocked_ips: {
|
||||
'ui:field': FieldWithInfo
|
||||
info_box: {
|
||||
'ui:field': InfoField
|
||||
},
|
||||
subnet_scan_list: {
|
||||
format: 'ip-list'
|
||||
|
|
Loading…
Reference in New Issue