From 35e90fc95d0d9013e06f1dc5ca2199653acbd6b5 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Mon, 20 Jul 2020 15:22:21 +0300 Subject: [PATCH] Added style that allows hiding config input component title and description (because advanced multi select has title and description built in) --- .../src/components/configuration-components/UiSchema.js | 4 ++++ .../cc/ui/src/styles/pages/ConfigurationPage.scss | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js b/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js index 0552700f5..1e06b479a 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js @@ -11,6 +11,7 @@ export default function UiSchema(props) { monkey: { general: { post_breach_actions: { + classNames: 'config-template-no-header', 'ui:widget': AdvancedMultiSelect } }, @@ -50,6 +51,7 @@ export default function UiSchema(props) { }, system_info: { system_info_collectors_classes: { + classNames: 'config-template-no-header', 'ui:widget': AdvancedMultiSelect } } @@ -59,6 +61,7 @@ export default function UiSchema(props) { exploits: { general: { exploiter_classes: { + classNames: 'config-template-no-header', 'ui:widget': AdvancedMultiSelect } } @@ -69,6 +72,7 @@ export default function UiSchema(props) { }, classes: { finger_classes: { + classNames: 'config-template-no-header', 'ui:widget': AdvancedMultiSelect } } diff --git a/monkey/monkey_island/cc/ui/src/styles/pages/ConfigurationPage.scss b/monkey/monkey_island/cc/ui/src/styles/pages/ConfigurationPage.scss index 09e15e3ad..8dd01f614 100644 --- a/monkey/monkey_island/cc/ui/src/styles/pages/ConfigurationPage.scss +++ b/monkey/monkey_island/cc/ui/src/styles/pages/ConfigurationPage.scss @@ -25,3 +25,11 @@ .config-form .form-group { margin-left: 2em; } + +.config-template-no-header>p{ + display: none; +} + +.config-template-no-header>label{ + display: none; +}