mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-07-12 16:06:23 +00:00
Make ProcessLogService.newLog a BehaviorSubject
This commit is contained in:
@ -3,13 +3,13 @@
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { WebSocketService } from './websocket.service';
|
||||
import { Subject } from 'rxjs/Subject';
|
||||
import { ProcessLogCommand } from './processlog-command';
|
||||
import { config } from '../config';
|
||||
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
|
||||
|
||||
@Injectable()
|
||||
export class ProcessLogService {
|
||||
newLog = new Subject<any>();
|
||||
newLog = new BehaviorSubject<any>(config.console.defaultLogs);
|
||||
showLiveLogs = config.console.showLiveLogs;
|
||||
|
||||
command_handlers = {
|
||||
|
Reference in New Issue
Block a user