Implement optional writing of the latest process log to console

This commit is contained in:
Kristóf Tóth
2018-05-27 19:02:18 +02:00
parent 2f3ea52b8e
commit 3565b890c4
6 changed files with 29 additions and 5 deletions

View File

@ -29,13 +29,23 @@ export class ConsoleComponent implements OnInit {
}
writeHandler(data: ConsoleCommand) {
this.console_content = data.content;
this.setContent(data.content);
}
readHandler(data: ConsoleCommand) {
this.sendContent(this.console_content);
}
newLogHandler(content: string) {
if (config.console.rewriteContentWithNewLogs) {
this.setContent(content);
}
}
setContent(content: string) {
this.console_content = content;
}
sendContent(content: string) {
this.webSocketService.send('console', {
'command': 'read',