From 6197f4253e1cb095ec7e7239a100bb882bcc0d8d Mon Sep 17 00:00:00 2001
From: Itay Mizeretz
Date: Wed, 4 Oct 2017 15:26:02 +0300
Subject: [PATCH] Improve config buttons and message
---
.../ui/src/components/pages/ConfigurePage.js | 47 ++++++++++++-------
.../ui/src/components/pages/StartOverPage.js | 4 +-
2 files changed, 31 insertions(+), 20 deletions(-)
diff --git a/monkey_island/cc/ui/src/components/pages/ConfigurePage.js b/monkey_island/cc/ui/src/components/pages/ConfigurePage.js
index f24c76f53..cc8118b17 100644
--- a/monkey_island/cc/ui/src/components/pages/ConfigurePage.js
+++ b/monkey_island/cc/ui/src/components/pages/ConfigurePage.js
@@ -122,26 +122,37 @@ class ConfigurePageComponent extends React.Component {
+ onChange={this.onChange}>
+
+
+
+ This configuration will only apply to new infections.
+
+
+
+
+
+ { this.state.reset ?
+
+
+ Configuration reset successfully.
+
+ : ''}
+ { this.state.saved ?
+
+
+ Configuration saved successfully.
+
+ : ''}
+
+
: ''}
- Reset to defaults
-
-
- This configuration will only apply to new infections.
-
- { this.state.reset ?
-
-
- Configuration reset successfully.
-
- : ''}
- { this.state.saved ?
-
-
- Configuration saved successfully.
-
- : ''}
+
);
}
diff --git a/monkey_island/cc/ui/src/components/pages/StartOverPage.js b/monkey_island/cc/ui/src/components/pages/StartOverPage.js
index 26b404137..6ecb2cc69 100644
--- a/monkey_island/cc/ui/src/components/pages/StartOverPage.js
+++ b/monkey_island/cc/ui/src/components/pages/StartOverPage.js
@@ -27,8 +27,8 @@ class StartOverPageComponent extends React.Component {
Reset Environment
{ this.state.cleaned ?
-
-
+
+
Environment was reset successfully
: ''}