mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:11:32 +00:00
Rename config key to clarify meaning
This commit is contained in:
parent
ec757bb21d
commit
d13935511b
@ -40,7 +40,7 @@ export const config = {
|
||||
console: {
|
||||
route: 'console',
|
||||
defaultContent: '',
|
||||
rewriteContentWithProcessLogs: 'stdout',
|
||||
rewriteContentWithProcessLogsOnDeploy: 'stdout',
|
||||
showLiveLogs: true,
|
||||
defaultLogs: {
|
||||
stdout: '',
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user