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: {
route: 'console',
defaultContent: '',
rewriteContentWithProcessLogs: 'stdout',
rewriteContentWithProcessLogsOnDeploy: 'stdout',
showLiveLogs: true,
defaultLogs: {
stdout: '',

View File

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