src/app/ceph/block/rbd-images/rbd-images.component.ts
selector | cd-rbd-images |
styleUrls | ./rbd-images.component.scss |
templateUrl | ./rbd-images.component.html |
Properties |
Methods |
constructor(authStorageService: AuthStorageService)
|
||||||
Parameters :
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
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