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",
"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",

View File

@ -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'