mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:21:31 +00:00
Rename recover to ready
This commit is contained in:
parent
0543a36f09
commit
e6dfdc678e
@ -4,7 +4,7 @@ export const config = {
|
||||
route: 'dashboard',
|
||||
triggerFirstFSMStep: 'step_1',
|
||||
askReloadSite: false,
|
||||
recoverAfterPageReload: true,
|
||||
sendReadyAfterPageReload: true,
|
||||
terminalOrConsole: 'terminal',
|
||||
currentLayout: 'terminal-ide-web',
|
||||
enabledLayouts: [
|
||||
|
@ -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'}));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user