File
    Implements
    
    
    Metadata
    
        
            
                | selector | cd-rgw-501 | 
            
                | styleUrls | ./rgw-501.component.scss | 
            
                | templateUrl | ./rgw-501.component.html | 
        
    
    
    
    
    
    
        Methods
    
    
        
            
                | ngOnDestroy | 
            
                | ngOnDestroy() | 
            
                |  | 
            
                |  | 
        
    
    
    
    
        
        
        
            
                
                    | message | 
                    
                        | Type : string | 
                    
                        | Default value : 'The Object Gateway service is not configured.' | 
                        
                            |  | 
            
        
        
            
                
                    | routeParamsSubscribe | 
                    
                        | Type : any | 
                        
                            |  | 
            
        
        import { Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { CephReleaseNamePipe } from '../../../shared/pipes/ceph-release-name.pipe';
import { SummaryService } from '../../../shared/services/summary.service';
@Component({
  selector: 'cd-rgw-501',
  templateUrl: './rgw-501.component.html',
  styleUrls: ['./rgw-501.component.scss']
})
export class Rgw501Component implements OnInit, OnDestroy {
  docsUrl: string;
  message = 'The Object Gateway service is not configured.';
  routeParamsSubscribe: any;
  constructor(
    private route: ActivatedRoute,
    private summaryService: SummaryService,
    private cephReleaseNamePipe: CephReleaseNamePipe
  ) {}
  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/` +
        `#enabling-the-object-gateway-management-frontend`;
      setTimeout(() => {
        subs.unsubscribe();
      }, 0);
    });
    this.routeParamsSubscribe = this.route.params.subscribe((params: { message: string }) => {
      this.message = params.message;
    });
  }
  ngOnDestroy() {
    this.routeParamsSubscribe.unsubscribe();
  }
}
     
    
        <cd-info-panel>
  {{ message }}<br>
  <ng-container i18n>Please consult the <a href="{{docsUrl}}" target="_blank">documentation</a>
  on how to configure and enable the Object Gateway management functionality.</ng-container>
</cd-info-panel>
     
    
    
        
        
            
                Legend
            
            
            
            
                Html element with directive