cc: Change schema for Network configuration tab to decouple info box and blocked IPs' input field

This commit is contained in:
Shreya 2021-07-09 20:19:38 +05:30
parent e6c9377908
commit 677f995bb3
2 changed files with 9 additions and 5 deletions

View File

@ -9,6 +9,13 @@ BASIC_NETWORK = {
"title": "Scope", "title": "Scope",
"type": "object", "type": "object",
"properties": { "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": { "blocked_ips": {
"title": "Blocked IPs", "title": "Blocked IPs",
"type": "array", "type": "array",
@ -19,9 +26,6 @@ BASIC_NETWORK = {
}, },
"default": [], "default": [],
"description": "List of IPs that the Monkey will not scan.", "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": { "local_network_scan": {
"title": "Local network scan", "title": "Local network scan",

View File

@ -18,8 +18,8 @@ export default function UiSchema(props) {
basic_network: { basic_network: {
'ui:order': ['scope', 'network_analysis'], 'ui:order': ['scope', 'network_analysis'],
scope: { scope: {
blocked_ips: { info_box: {
'ui:field': FieldWithInfo 'ui:field': InfoField
}, },
subnet_scan_list: { subnet_scan_list: {
format: 'ip-list' format: 'ip-list'