From dae669282d277ddf044141f2d802057b9d1bc5a9 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Thu, 15 Jul 2021 10:09:19 +0300 Subject: [PATCH] Island UI: implement scenario/mode reset upon starting over --- .../cc/ui/src/components/pages/StartOverPage.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/pages/StartOverPage.js b/monkey/monkey_island/cc/ui/src/components/pages/StartOverPage.js index c536146bf..84b84d6f7 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/StartOverPage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/StartOverPage.js @@ -38,11 +38,11 @@ class StartOverPageComponent extends AuthComponent { - +

Start Over

@@ -88,7 +88,10 @@ class StartOverPageComponent extends AuthComponent { cleaned: true }); } - }).then(this.updateMonkeysRunning()); + }).then(() => { + this.updateMonkeysRunning(); + this.props.onStatusChange(); + }); }; closeModal = () => {