Fix wrong variable being accessed by controls_component

This commit is contained in:
Marty Oehme 2018-08-27 23:03:13 +02:00
parent 3a1ba1c1e9
commit 800c85d14f

View file

@ -1,7 +1,7 @@
<div id="controls">
<material-button id="reset" (click)="onResetClicked()"><material-icon icon="replay" baseline></material-icon></material-button>
<material-button id="run" (click)="onStartClicked()">
<span [ngSwitch]="engine.isRunning">
<span [ngSwitch]="ctrl.isRunning">
<material-icon *ngSwitchCase="false" icon="play_arrow" baseline></material-icon>
<material-icon *ngSwitchCase="true" icon="pause" baseline></material-icon>
</span>