From d13935511b97f294e8815b46773b0474c0a78007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 30 May 2018 11:34:29 +0200 Subject: [PATCH] Rename config key to clarify meaning --- src/app/config.ts | 2 +- src/app/console/console.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/config.ts b/src/app/config.ts index d40e0a3..bf04afc 100644 --- a/src/app/config.ts +++ b/src/app/config.ts @@ -40,7 +40,7 @@ export const config = { console: { route: 'console', defaultContent: '', - rewriteContentWithProcessLogs: 'stdout', + rewriteContentWithProcessLogsOnDeploy: 'stdout', showLiveLogs: true, defaultLogs: { stdout: '', diff --git a/src/app/console/console.component.ts b/src/app/console/console.component.ts index 7e1d4d3..20da17d 100644 --- a/src/app/console/console.component.ts +++ b/src/app/console/console.component.ts @@ -14,7 +14,7 @@ import { ProcessLogService } from '../services/processlog.service'; }) export class ConsoleComponent implements OnInit { console_content: string = config.console.defaultContent; - rewriteContentWithProcessLogs: string = config.console.rewriteContentWithProcessLogs; + rewriteContentWithProcessLogsOnDeploy: string = config.console.rewriteContentWithProcessLogsOnDeploy; command_handlers = { 'write': this.writeHandler.bind(this), @@ -42,8 +42,8 @@ export class ConsoleComponent implements OnInit { } newLogsHandler(logs: any) { - if (this.rewriteContentWithProcessLogs !== '') { - const log = logs[this.rewriteContentWithProcessLogs]; + if (this.rewriteContentWithProcessLogsOnDeploy !== '') { + const log = logs[this.rewriteContentWithProcessLogsOnDeploy]; if (log) { this.setContent(log); }