import { Component , OnInit , Injector } from '@angular/core' ; import { forkJoin , Observable , of } from 'rxjs' ; import { DataService } from 'src/app/services/data.service' ; import { SettingsService } from 'src/app/services/settings.service' ; import { IResponseMessageHandler } from 'src/app/Common/ResponseMessageHandlers' ; import { PartitionBaseControllerDirective } from '../PartitionBase' ; @ Component ( { selector : 'app-details' , templateUrl : './details.component.html' , styleUrls : [ './details.component.scss' ] } ) export class DetailsComponent extends PartitionBaseControllerDirective { constructor ( protected data , injector , private settings ) { super ( data , injector ) ; } setup ( ) { } refresh ( messageHandler ? ) { return forkJoin ( [ this . partition . loadInformation . refresh ( messageHandler ) , this . partition . health . refresh ( messageHandler ) , this . partition . replicas . refresh ( messageHandler ) , ] ) ; } }