diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/ImportConfigModal.tsx b/monkey/monkey_island/cc/ui/src/components/configuration-components/ImportConfigModal.tsx index 7023b2546..3f355e917 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/ImportConfigModal.tsx +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/ImportConfigModal.tsx @@ -5,8 +5,8 @@ import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import AuthComponent from '../AuthComponent'; import '../../styles/components/configuration-components/ImportConfigModal.scss'; -import UnsafeOptionsConfirmationModal - from '../configuration-components/UnsafeOptionsConfirmationModal.js'; +import UnsafeConfigOptionsConfirmationModal + from './UnsafeConfigOptionsConfirmationModal.js'; import UploadStatusIcon, {UploadStatuses} from '../ui-components/UploadStatusIcon'; import isUnsafeOptionSelected from '../utils/SafeOptionValidator.js'; @@ -102,7 +102,7 @@ const ConfigImportModal = (props: Props) => { function showVerificationDialog() { return ( - { resetState(); diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/UnsafeOptionsConfirmationModal.js b/monkey/monkey_island/cc/ui/src/components/configuration-components/UnsafeConfigOptionsConfirmationModal.js similarity index 70% rename from monkey/monkey_island/cc/ui/src/components/configuration-components/UnsafeOptionsConfirmationModal.js rename to monkey/monkey_island/cc/ui/src/components/configuration-components/UnsafeConfigOptionsConfirmationModal.js index d21bf5601..b6de83f42 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/UnsafeOptionsConfirmationModal.js +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/UnsafeConfigOptionsConfirmationModal.js @@ -1,15 +1,17 @@ import React from 'react'; import {Modal, Button} from 'react-bootstrap'; -function UnsafeOptionsConfirmationModal(props) { +function UnsafeConfigOptionsConfirmationModal(props) { return ( - +

Warning

- Some of the selected options could cause systems to become unstable or malfunction. + Some of the configuration options could cause systems to become unstable or malfunction. Are you sure you want to submit the selected settings?

@@ -33,4 +35,4 @@ function UnsafeOptionsConfirmationModal(props) { ) } -export default UnsafeOptionsConfirmationModal; +export default UnsafeConfigOptionsConfirmationModal; diff --git a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js index 74f7b5b4d..361c52f83 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -10,8 +10,8 @@ import {faExclamationCircle} from '@fortawesome/free-solid-svg-icons/faExclamati import {formValidationFormats} from '../configuration-components/ValidationFormats'; import transformErrors from '../configuration-components/ValidationErrorMessages'; import InternalConfig from '../configuration-components/InternalConfig'; -import UnsafeOptionsConfirmationModal - from '../configuration-components/UnsafeOptionsConfirmationModal.js'; +import UnsafeConfigOptionsConfirmationModal + from '../configuration-components/UnsafeConfigOptionsConfirmationModal.js'; import UnsafeOptionsWarningModal from '../configuration-components/UnsafeOptionsWarningModal.js'; import isUnsafeOptionSelected from '../utils/SafeOptionValidator.js'; import ConfigExportModal from '../configuration-components/ExportConfigModal'; @@ -277,7 +277,7 @@ class ConfigurePageComponent extends AuthComponent { renderUnsafeOptionsConfirmationModal() { return ( -