File

src/app/ceph/block/rbd-images/rbd-images.component.ts

Implements

OnInit

Metadata

selector cd-rbd-images
styleUrls ./rbd-images.component.scss
templateUrl ./rbd-images.component.html

Index

Properties
Methods

Constructor

constructor(authStorageService: AuthStorageService)
Parameters :
Name Type Optional
authStorageService AuthStorageService No

Methods

ngOnInit
ngOnInit()
Returns : void

Properties

grafanaPermission
Type : Permission
import { Component, OnInit } from '@angular/core';

import { Permission } from '../../../shared/models/permissions';
import { AuthStorageService } from '../../../shared/services/auth-storage.service';

@Component({
  selector: 'cd-rbd-images',
  templateUrl: './rbd-images.component.html',
  styleUrls: ['./rbd-images.component.scss']
})
export class RbdImagesComponent implements OnInit {
  grafanaPermission: Permission;

  constructor(private authStorageService: AuthStorageService) {
    this.grafanaPermission = this.authStorageService.getPermissions().grafana;
  }

  ngOnInit() {}
}
<div>
  <tabset>
    <tab heading="Images"
         i18n-heading
         id="tab1">
      <cd-rbd-list></cd-rbd-list>
    </tab>
    <tab heading="Trash"
         i18n-heading>
      <cd-rbd-trash-list></cd-rbd-trash-list>
    </tab>
    <tab heading="Overall Performance"
         *ngIf="grafanaPermission.read"
         i18n-heading>
      <cd-grafana [grafanaPath]="'rbd-overview?'"
                  uid="41FrpeUiz"
                  grafanaStyle="two">
      </cd-grafana>
    </tab>
  </tabset>
</div>

./rbd-images.component.scss

Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""