# All files / src/app/ceph/block/rbd-images rbd-images.component.ts

100% Statements 9/9
66.67% Branches 2/3
100% Functions 2/2
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    203x

    3x

    3x

    1x
    1x

    3x
    3x
     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',
      template: require('./rbd-images.component.html'),
      styles: []
    })
    export class RbdImagesComponent implements OnInit {
      grafanaPermission: Permission;

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

      ngOnInit() {}
    }