diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-26 15:54:11 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-26 15:54:11 +0200 |
| commit | 8b8b4d0543ab11fbc11e4bcef27e4aecf2736b85 (patch) | |
| tree | bd2a5cee481e083d01dce96202bc2298fc761b67 /src | |
| parent | 42c07bfbcb8f5b310cdec3d71a802b26542b0de6 (diff) | |
| parent | 84f817d8bd8b0f1e1e75a84e73cadea0b5d5f966 (diff) | |
Merge branch 'react' of https://github.com/atlarge-research/opendc-frontend into react
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/home/ContactSection.js | 11 | ||||
| -rw-r--r-- | src/components/home/ContactSection.sass | 4 | ||||
| -rw-r--r-- | src/sagas/experiments.js | 2 |
3 files changed, 14 insertions, 3 deletions
diff --git a/src/components/home/ContactSection.js b/src/components/home/ContactSection.js index 1ec5e9c7..fd65b31c 100644 --- a/src/components/home/ContactSection.js +++ b/src/components/home/ContactSection.js @@ -35,6 +35,17 @@ const ContactSection = () => ( </a>. </div> </div> + <div className="row"> + <div className="col text-center disclaimer mt-5 small"> + <FontAwesome name="exclamation-triangle" size="2x" className="mr-2"/> + <br/> + OpenDC is an experimental tool. Your data may get lost, overwritten, or otherwise become unavailable. + <br/> + The OpenDC authors should in no way be liable in the event this happens (see our <strong><a + href="https://github.com/atlarge-research/opendc/blob/master/LICENSE.md">license</a></strong>). Sorry + for the inconvenience. + </div> + </div> </ContentSection> ); diff --git a/src/components/home/ContactSection.sass b/src/components/home/ContactSection.sass index c292526c..2cde7391 100644 --- a/src/components/home/ContactSection.sass +++ b/src/components/home/ContactSection.sass @@ -11,5 +11,5 @@ .tudelft-icon height: 100px - .fa - margin-right: 10px + .disclaimer + color: #cccccc diff --git a/src/sagas/experiments.js b/src/sagas/experiments.js index 5bcd6948..84a748da 100644 --- a/src/sagas/experiments.js +++ b/src/sagas/experiments.js @@ -38,7 +38,7 @@ export function* onOpenExperimentSucceeded(action) { function* startStateFetchLoop(experimentId) { try { - while (true) { + while ((yield select(state => state.currentExperimentId)) !== -1) { const lastSimulatedTick = (yield call(getLastSimulatedTick, experimentId)).lastSimulatedTick; if (lastSimulatedTick !== (yield select(state => state.lastSimulatedTick))) { yield put(setLastSimulatedTick(lastSimulatedTick)); |
