From bac091f185b2e13a8b48dc2ab688c737ccd00fc6 Mon Sep 17 00:00:00 2001 From: vakarisz Date: Fri, 8 Jul 2022 12:14:22 +0300 Subject: [PATCH] UI: Remove renderAttackAlertModal from ConfigurePage.js Nothing was using this function --- .../ui/src/components/pages/ConfigurePage.js | 28 ------------------- 1 file changed, 28 deletions(-) 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 fa76577d5..dc42c996c 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -46,7 +46,6 @@ class ConfigurePageComponent extends AuthComponent { selectedSection: this.currentSection, showUnsubmittedConfigWarning: false, showUnsafeOptionsConfirmation: false, - showUnsafeAttackOptionsWarning: false, showConfigExportModal: false, showConfigImportModal: false }; @@ -205,32 +204,6 @@ class ConfigurePageComponent extends AuthComponent { } } - renderAttackAlertModal = () => { - return ( { - this.setState({showUnsubmittedConfigWarning: false}) - }}> - -

-
Warning
-

-

- You have unsubmitted changes. Submit them before proceeding. -

-
- -
-
-
) - }; - renderUnsafeOptionsConfirmationModal() { return ( {this.renderConfigExportModal()} {this.renderConfigImportModal()} - {this.renderAttackAlertModal()} {this.renderUnsafeOptionsConfirmationModal()} {this.renderUnsafeAttackOptionsWarningModal()}

Monkey Configuration