From 698a13960ea08ed6b91a437df5fa84ea7716444c Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Tue, 19 May 2020 11:31:52 +0300 Subject: [PATCH] Removed unnecessary UI warning about config change not working if monkeys already ran --- .../ui/src/components/pages/ConfigurePage.js | 24 ------------------- 1 file changed, 24 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 172751a01..79e71b792 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -30,7 +30,6 @@ class ConfigurePageComponent extends AuthComponent { lastAction: 'none', sections: [], selectedSection: 'attack', - monkeysRan: false, PBAwinFile: [], PBAlinuxFile: [], showAttackAlert: false @@ -108,7 +107,6 @@ class ConfigurePageComponent extends AuthComponent { selectedSection: 'attack' }) }); - this.updateMonkeysRunning(); }; updateConfig = () => { @@ -359,14 +357,6 @@ class ConfigurePageComponent extends AuthComponent { event.target.value = null; }; - updateMonkeysRunning = () => { - this.authFetch('/api') - .then(res => res.json()) - .then(res => { - this.setState({monkeysRan: res['completed_steps']['run_monkey']}); - }); - }; - PBAwindows = () => { return () }; - renderConfigWontChangeWarning = () => { - return (
- {this.state.monkeysRan ? -
- - Changed configuration will only apply to new infections. - "Start over" to run again with different configuration. -
- : '' - } -
) - }; - renderBasicNetworkWarning = () => { if (this.state.selectedSection === 'basic_network') { return (
@@ -514,7 +491,6 @@ class ConfigurePageComponent extends AuthComponent { {this.renderAttackAlertModal()}

Monkey Configuration

{this.renderNav()} - {this.renderConfigWontChangeWarning()} {content}