Rename config key to clarify meaning

This commit is contained in:
Kristóf Tóth 2018-05-30 11:34:29 +02:00
parent ec757bb21d
commit d13935511b
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ export const config = {
console: { console: {
route: 'console', route: 'console',
defaultContent: '', defaultContent: '',
rewriteContentWithProcessLogs: 'stdout', rewriteContentWithProcessLogsOnDeploy: 'stdout',
showLiveLogs: true, showLiveLogs: true,
defaultLogs: { defaultLogs: {
stdout: '', stdout: '',

View File

@ -14,7 +14,7 @@ import { ProcessLogService } from '../services/processlog.service';
}) })
export class ConsoleComponent implements OnInit { export class ConsoleComponent implements OnInit {
console_content: string = config.console.defaultContent; console_content: string = config.console.defaultContent;
rewriteContentWithProcessLogs: string = config.console.rewriteContentWithProcessLogs; rewriteContentWithProcessLogsOnDeploy: string = config.console.rewriteContentWithProcessLogsOnDeploy;
command_handlers = { command_handlers = {
'write': this.writeHandler.bind(this), 'write': this.writeHandler.bind(this),
@ -42,8 +42,8 @@ export class ConsoleComponent implements OnInit {
} }
newLogsHandler(logs: any) { newLogsHandler(logs: any) {
if (this.rewriteContentWithProcessLogs !== '') { if (this.rewriteContentWithProcessLogsOnDeploy !== '') {
const log = logs[this.rewriteContentWithProcessLogs]; const log = logs[this.rewriteContentWithProcessLogsOnDeploy];
if (log) { if (log) {
this.setContent(log); this.setContent(log);
} }