mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 16:15:11 +00:00
Move live log checking logic to ProcessLogService
This commit is contained in:
@ -63,7 +63,7 @@ export class IdeComponent implements OnInit {
|
||||
language: string = config.ide.defaultLanguage;
|
||||
theme = 'cobalt';
|
||||
|
||||
@Output() newLog = new EventEmitter<any>();
|
||||
@Output() newLogs = new EventEmitter<any>();
|
||||
|
||||
options: any = {enableBasicAutocompletion: true,
|
||||
enableSnippets: true,
|
||||
@ -101,7 +101,7 @@ export class IdeComponent implements OnInit {
|
||||
config.ide.deployProcessName,
|
||||
(event) => {
|
||||
this.deploymentNotificationService.deploying.next(false);
|
||||
this.newLog.emit({
|
||||
this.newLogs.emit({
|
||||
stdout: event.data.stdout,
|
||||
stderr: event.data.stderr
|
||||
});
|
||||
|
Reference in New Issue
Block a user