import { Component , Injector } from '@angular/core' ; import { IResponseMessageHandler } from 'src/app/Common/ResponseMessageHandlers' ; import { Observable } from 'rxjs' ; import { DataService } from 'src/app/services/data.service' ; import { DeployedCodePackageBaseControllerDirective } from '../DeployedCodePackageBase' ; import { map } from 'rxjs/operators' ; @ Component ( { selector : 'app-container-logs' , templateUrl : './container-logs.component.html' , styleUrls : [ './container-logs.component.scss' ] } ) export class ContainerLogsComponent extends DeployedCodePackageBaseControllerDirective { containerLogs : string ; constructor ( protected data , injector ) { super ( data , injector ) ; } refresh ( messageHandler ? ) { return this . deployedCodePackage . containerLogs . refresh ( messageHandler ) . pipe ( map ( containerLogs => { this . containerLogs = containerLogs . raw . Content ; } ) ) ; } getLogs ( ) { this . refresh ( ) . subscribe ( ) ; } }