Commit d82a6980 authored by Dorian Goepp's avatar Dorian Goepp
Browse files

Change the name of Interaction trace in the MobX store.

The data of the interaction trace object were stored in the global MobX store with the key "interactionTrace". To prepare for the further work, I changed it to match the name of this object as it is known to FlexLayout.
parent 3193d417
......@@ -26,7 +26,7 @@ class InteractionTrace extends Component {
this.interactionStore = new InteractionTraceStore();['interactionTrace'] = this.interactionStore;['int-trace'] = this.interactionStore;
// Use the margin convention practice
this.margin = {top: 20, right: 30, bottom: 20, left: 20};
......@@ -8,10 +8,10 @@ export const LatestInteraction = observer(
function LatestInteraction(props) {
let intended, enacted;
let iteration = null;
if ('interactionTrace' in &&['interactionTrace'].showInteraction) {
intended =['interactionTrace'].currentInteraction.intended;
enacted =['interactionTrace'].currentInteraction.enacted;
const iteration_id =['interactionTrace'];
if ('int-trace' in &&['int-trace'].showInteraction) {
intended =['int-trace'].currentInteraction.intended;
enacted =['int-trace'].currentInteraction.enacted;
const iteration_id =['int-trace'];
iteration = [<p key="first"><span className="label">Iteration:</span> {iteration_id}</p>, <hr key="last"/>];
} else {
intended = props.intended;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment