1 import { Component, OnInit } from '@angular/core';
3 import { CephReleaseNamePipe } from '../../pipes/ceph-release-name.pipe';
4 import { SummaryService } from '../../services/summary.service';
7 selector: 'cd-orchestrator-doc-panel',
8 templateUrl: './orchestrator-doc-panel.component.html',
9 styleUrls: ['./orchestrator-doc-panel.component.scss']
11 export class OrchestratorDocPanelComponent implements OnInit {
15 private cephReleaseNamePipe: CephReleaseNamePipe,
16 private summaryService: SummaryService
20 const subs = this.summaryService.subscribe((summary: any) => {
25 const releaseName = this.cephReleaseNamePipe.transform(summary.version);
26 this.docsUrl = `http://docs.ceph.com/docs/${releaseName}/mgr/orchestrator_cli/`;