1 import { Component, OnDestroy, OnInit } from '@angular/core';
2 import { ActivatedRoute } from '@angular/router';
4 import { CephReleaseNamePipe } from '../../../shared/pipes/ceph-release-name.pipe';
5 import { SummaryService } from '../../../shared/services/summary.service';
8 selector: 'cd-rgw-501',
9 templateUrl: './rgw-501.component.html',
10 styleUrls: ['./rgw-501.component.scss']
12 export class Rgw501Component implements OnInit, OnDestroy {
14 message = 'The Object Gateway service is not configured.';
15 routeParamsSubscribe: any;
18 private route: ActivatedRoute,
19 private summaryService: SummaryService,
20 private cephReleaseNamePipe: CephReleaseNamePipe
24 const subs = this.summaryService.subscribe((summary: any) => {
29 const releaseName = this.cephReleaseNamePipe.transform(summary.version);
31 `http://docs.ceph.com/docs/${releaseName}/mgr/dashboard/` +
32 `#enabling-the-object-gateway-management-frontend`;
39 this.routeParamsSubscribe = this.route.params.subscribe((params: { message: string }) => {
40 this.message = params.message;
45 this.routeParamsSubscribe.unsubscribe();