From 30e892b1c7a4335dfae99ebaf6ee5a382055fb46 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Sun, 26 May 2019 13:08:30 +0300 Subject: [PATCH] Logo doesn't work - leave it for now, also move the show notification to only when changed. also added dev mode to package.json - this helps with debugging JS errors live in chrome. use with 'npm run dev' --- monkey/monkey_island/cc/ui/package.json | 1 + monkey/monkey_island/cc/ui/src/components/Main.js | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/monkey_island/cc/ui/package.json b/monkey/monkey_island/cc/ui/package.json index 8def053f8..b0f206bca 100644 --- a/monkey/monkey_island/cc/ui/package.json +++ b/monkey/monkey_island/cc/ui/package.json @@ -6,6 +6,7 @@ "clean": "rimraf dist/*", "copy": "copyfiles -f ./src/index.html ./src/favicon.ico ./dist", "dist": "webpack --mode production", + "dev": "webpack --mode development", "lint": "eslint ./src", "posttest": "npm run lint", "release:major": "npm version major && npm publish && git push --follow-tags", diff --git a/monkey/monkey_island/cc/ui/src/components/Main.js b/monkey/monkey_island/cc/ui/src/components/Main.js index e6fa1cadc..863e814ba 100644 --- a/monkey/monkey_island/cc/ui/src/components/Main.js +++ b/monkey/monkey_island/cc/ui/src/components/Main.js @@ -52,6 +52,7 @@ class AppComponent extends AuthComponent { } if (isChanged) { this.setState({completedSteps: res['completed_steps']}); + this.showInfectionDoneNotification(); } }); } @@ -107,8 +108,6 @@ class AppComponent extends AuthComponent { } render() { - this.showInfectionDoneNotification(); - return ( @@ -206,7 +205,7 @@ class AppComponent extends AuthComponent { "Monkey Island", "Infection is done. Click to see results", "https://localhost:5000/report", - {logoImage}); + ""); } } }