1- import { Component , OnInit , OnDestroy , NgZone , Inject } from '@angular/core' ;
1+ import { Component , OnInit , OnDestroy , Inject } from '@angular/core' ;
22import { DOCUMENT } from '@angular/common' ;
33import { Title } from '@angular/platform-browser' ;
44import { ActivatedRoute } from '@angular/router' ;
@@ -50,7 +50,6 @@ export class AppJobComponent implements OnInit, OnDestroy {
5050 private timeService : TimeService ,
5151 private authService : AuthService ,
5252 private route : ActivatedRoute ,
53- private ngZone : NgZone ,
5453 @Inject ( DOCUMENT ) private document : any ,
5554 private titleService : Title
5655 ) {
@@ -70,9 +69,7 @@ export class AppJobComponent implements OnInit, OnDestroy {
7069 this . termSub = this . socketService . outputEvents
7170 . subscribe ( event => {
7271 if ( event . type === 'data' || event . type === 'exit' || event . type === 'container' ) {
73- if ( typeof event . data === 'string' ) {
74- this . ngZone . run ( ( ) => this . terminalInput = event . data ) ;
75- }
72+ this . terminalInput = event . data ;
7673 } else if ( event . type === 'job stopped' && event . data === this . id ) {
7774 this . processing = false ;
7875 } else if ( event . type === 'job restarted' && event . data === this . id ) {
0 commit comments