]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-501/nfs-501.component.ts
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / nfs / nfs-501 / nfs-501.component.ts
index 77b3b649332a9b53d1a60308687d2b8bce05e65e..1b34aaf7df5d039ab7b0a0cd10b7f8dcb111d28d 100644 (file)
@@ -3,42 +3,18 @@ import { ActivatedRoute } from '@angular/router';
 
 import { I18n } from '@ngx-translate/i18n-polyfill';
 
-import { CephReleaseNamePipe } from '../../../shared/pipes/ceph-release-name.pipe';
-import { SummaryService } from '../../../shared/services/summary.service';
-
 @Component({
   selector: 'cd-nfs-501',
   templateUrl: './nfs-501.component.html',
   styleUrls: ['./nfs-501.component.scss']
 })
 export class Nfs501Component implements OnInit, OnDestroy {
-  docsUrl: string;
   message = this.i18n('The NFS Ganesha service is not configured.');
   routeParamsSubscribe: any;
 
-  constructor(
-    private route: ActivatedRoute,
-    private summaryService: SummaryService,
-    private cephReleaseNamePipe: CephReleaseNamePipe,
-    private i18n: I18n
-  ) {}
+  constructor(private route: ActivatedRoute, private i18n: I18n) {}
 
   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/dashboard/` +
-        `#configuring-nfs-ganesha-in-the-dashboard`;
-
-      setTimeout(() => {
-        subs.unsubscribe();
-      }, 0);
-    });
-
     this.routeParamsSubscribe = this.route.params.subscribe((params: { message: string }) => {
       this.message = params.message;
     });