Fix MessageComponent 'next' button

This commit is contained in:
Kristóf Tóth 2018-05-04 17:46:30 +02:00
parent 8d80f701f1
commit dbb50ad7b4
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<div class="tfw-messages-main">
<div class="tfw-grid-messages-header">
<div class="tao-grid-top-left"><span>Instructions</span></div>
<div class="tao-grid-center-right"><button *ngIf="showNextButton" class="tao-btn-rainbow">Next</button></div>
<div class="tao-grid-center-right"><button *ngIf="showNextButton" (click)="stepFSM()" class="tao-btn-rainbow">Next</button></div>
</div>
<div class="tfw-grid-message" *ngFor="let message of messages.slice().reverse()">
<div class="tfw-grid-message-header">

View File

@ -43,4 +43,8 @@ export class MessagesComponent implements OnInit {
this.command_handlers[event.data.command](event.data);
});
}
stepFSM() {
this.websocketService.sendJSON({key: '', trigger: 'step_next'});
}
}