Rename recover to ready

This commit is contained in:
R. Richard 2019-08-15 13:43:48 +02:00
parent 0543a36f09
commit e6dfdc678e
2 changed files with 5 additions and 5 deletions

View File

@ -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: [

View File

@ -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'}));
}
}