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'
This commit is contained in:
Shay Nehmad 2019-05-26 13:08:30 +03:00
parent 34d82020e9
commit 30e892b1c7
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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 (
<Router>
<Grid fluid={true}>
@ -206,7 +205,7 @@ class AppComponent extends AuthComponent {
"Monkey Island",
"Infection is done. Click to see results",
"https://localhost:5000/report",
{logoImage});
"");
}
}
}