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; iframeUrl: string = config.dashboard.iframeUrl;
selectedTerminalMenuItem: string = config.dashboard.terminalOrConsole; selectedTerminalMenuItem: string = config.dashboard.terminalOrConsole;
command_handlers = {'layout': this.layoutHandler.bind(this), command_handlers = {
'hideMessages': this.hideMessagesHandler.bind(this), 'layout': this.layoutHandler.bind(this),
'terminalMenuItem': this.terminalMenuItemHandler.bind(this), 'hideMessages': this.hideMessagesHandler.bind(this),
'reloadFrontend': this.reloadFrontendHandlder.bind(this)}; 'terminalMenuItem': this.terminalMenuItemHandler.bind(this),
'reloadFrontend': this.reloadFrontendHandlder.bind(this)
};
constructor(private deploymentNotificationService: DeploymentNotificationService, constructor(private deploymentNotificationService: DeploymentNotificationService,
private webSocketService: WebSocketService, private webSocketService: WebSocketService,

View File

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