We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b3c5e6 commit 9d8bc0eCopy full SHA for 9d8bc0e
experiments/WebUI/src/components/content/MapComponent.js
@@ -350,6 +350,10 @@ class MapComponent extends React.Component {
350
}
351
352
runMission(num) {
353
+ if (this.state.editedMissions[num] === 1) {
354
+ alert("Error: Unsaved Changes. Save mission to vehicle before running.");
355
+ return;
356
+ }
357
this.viewMission(num);
358
//todo: should there be some response to check if mission has been run?
359
this.management.runMission(parseInt(num) + 1);
0 commit comments