summaryrefslogtreecommitdiff
path: root/frontend/src/components/experiments/ExperimentRowComponent.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-02 18:39:28 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:47:21 +0200
commitf119fc78dda4d1e828dde04f378a63a93e3a0a7e (patch)
treebea1eace5d47f21a7ccb835c6a6079bc92e48710 /frontend/src/components/experiments/ExperimentRowComponent.js
parent7f27a6370a0af25e1bf6ff8f46360c6c26c21e0b (diff)
Add current progress on frontend port
Diffstat (limited to 'frontend/src/components/experiments/ExperimentRowComponent.js')
-rw-r--r--frontend/src/components/experiments/ExperimentRowComponent.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/frontend/src/components/experiments/ExperimentRowComponent.js b/frontend/src/components/experiments/ExperimentRowComponent.js
index 8a2638a7..880d7e31 100644
--- a/frontend/src/components/experiments/ExperimentRowComponent.js
+++ b/frontend/src/components/experiments/ExperimentRowComponent.js
@@ -6,16 +6,12 @@ import Shapes from '../../shapes/index'
const ExperimentRowComponent = ({ experiment, simulationId, onDelete }) => (
<tr>
<td className="pt-3">{experiment.name}</td>
- <td className="pt-3">
- {experiment.path.name
- ? experiment.path.name
- : 'Path ' + experiment.path.id}
- </td>
+ <td className="pt-3">{experiment.topology.name}</td>
<td className="pt-3">{experiment.trace.name}</td>
<td className="pt-3">{experiment.scheduler.name}</td>
<td className="text-right">
<Link
- to={'/simulations/' + simulationId + '/experiments/' + experiment.id}
+ to={'/simulations/' + simulationId + '/experiments/' + experiment._id}
className="btn btn-outline-primary btn-sm mr-2"
title="Open this experiment"
>
@@ -24,7 +20,7 @@ const ExperimentRowComponent = ({ experiment, simulationId, onDelete }) => (
<div
className="btn btn-outline-danger btn-sm"
title="Delete this experiment"
- onClick={() => onDelete(experiment.id)}
+ onClick={() => onDelete(experiment._id)}
>
<span className="fa fa-trash"/>
</div>