mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-07-01 07:06:22 +00:00
Rename recover to ready
This commit is contained in:
@ -49,7 +49,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
||||
this.webSocketService.connect();
|
||||
this.initCommandHandling();
|
||||
this.initDeploymentNotifications();
|
||||
this.recoverIfNeeded();
|
||||
this.sendReadyIfNeeded();
|
||||
this.triggerFirstFSMStepIfNeeded();
|
||||
}
|
||||
|
||||
@ -84,9 +84,9 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
recoverIfNeeded() {
|
||||
if (config.dashboard.recoverAfterPageReload) {
|
||||
setTimeout(() => this.webSocketService.sendJSON({'key': 'recover'}));
|
||||
sendReadyIfNeeded() {
|
||||
if (config.dashboard.sendReadyAfterPageReload) {
|
||||
setTimeout(() => this.webSocketService.sendJSON({'key': 'frontend.ready'}));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user