]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/components/orchestrator-doc-panel/orchestrator-doc-panel.component.ts
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / components / orchestrator-doc-panel / orchestrator-doc-panel.component.ts
index 484c422314adbf59a50ac18245f553f9641e8b1f..71c94ec7facdc75b569edec5e1547145bfe32a80 100644 (file)
@@ -1,33 +1,8 @@
-import { Component, OnInit } from '@angular/core';
-
-import { CephReleaseNamePipe } from '../../pipes/ceph-release-name.pipe';
-import { SummaryService } from '../../services/summary.service';
+import { Component } from '@angular/core';
 
 @Component({
   selector: 'cd-orchestrator-doc-panel',
   templateUrl: './orchestrator-doc-panel.component.html',
   styleUrls: ['./orchestrator-doc-panel.component.scss']
 })
-export class OrchestratorDocPanelComponent implements OnInit {
-  docsUrl: string;
-
-  constructor(
-    private cephReleaseNamePipe: CephReleaseNamePipe,
-    private summaryService: SummaryService
-  ) {}
-
-  ngOnInit() {
-    const subs = this.summaryService.subscribe((summary: any) => {
-      if (!summary) {
-        return;
-      }
-
-      const releaseName = this.cephReleaseNamePipe.transform(summary.version);
-      this.docsUrl = `http://docs.ceph.com/docs/${releaseName}/mgr/orchestrator/`;
-
-      setTimeout(() => {
-        subs.unsubscribe();
-      }, 0);
-    });
-  }
-}
+export class OrchestratorDocPanelComponent {}