import { Component } from '@angular/core' ; import { SecurityLevel } from '../../../models/right' ; @ Component ( { selector : 'cmdb-right-level-card' , templateUrl : './right-level-card.component.html' , styleUrls : [ './right-level-card.component.scss' ] } ) export class RightLevelCardComponent { public readonly cardHeader : string = 'Security Levels' ; public securityLevel = SecurityLevel ; public get securityLevels ( ) { return Object . keys ( SecurityLevel ) . filter ( key => ! isNaN ( Number ( SecurityLevel [ key ] ) ) ) ; } public getLevel ( name ) { return this . securityLevel [ name ] ; } }