Unify coding style

This commit is contained in:
Kristóf Tóth 2018-06-19 14:26:12 +02:00
parent 61b890cf98
commit 6ee58da7e4
2 changed files with 7 additions and 4 deletions

View File

@ -26,10 +26,12 @@ export class DashboardComponent implements OnInit, OnDestroy {
iframeUrl: string = config.dashboard.iframeUrl;
selectedTerminalMenuItem: string = config.dashboard.terminalOrConsole;
command_handlers = {'layout': this.layoutHandler.bind(this),
'hideMessages': this.hideMessagesHandler.bind(this),
'terminalMenuItem': this.terminalMenuItemHandler.bind(this),
'reloadFrontend': this.reloadFrontendHandlder.bind(this)};
command_handlers = {
'layout': this.layoutHandler.bind(this),
'hideMessages': this.hideMessagesHandler.bind(this),
'terminalMenuItem': this.terminalMenuItemHandler.bind(this),
'reloadFrontend': this.reloadFrontendHandlder.bind(this)
};
constructor(private deploymentNotificationService: DeploymentNotificationService,
private webSocketService: WebSocketService,

View File

@ -18,6 +18,7 @@ import { CommandMessage } from '../message-types/command-message';
export class MessagesComponent implements OnInit {
messages: MessagesMessage[] = [];
showNextButton: boolean = config.messages.showNextButton;
command_handlers = {
'showNextButton': this.showButtonHandler.bind(this)
};