Skip to content
Snippets Groups Projects
Forked from an inaccessible project.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
audit-symbol.component.ts 555 B
import { Component, Input, OnInit, ViewChild } from '@angular/core';
import { AuditSymbol, AuditIconSymbol } from '../models/audit-symbols';

@Component({
  selector: 'cse-audit-symbol',
  templateUrl: './audit-symbol.component.html',
  styleUrls: ['./audit-symbol.component.scss']
})
export class AuditSymbolComponent {
  @Input() symbol: AuditSymbol;
  @Input() disableTooltip?: boolean;
  @Input() size = 24;

  // Used to typecast because ng-switch is dumb
  asIcon(symbol: AuditSymbol): AuditIconSymbol {
    return symbol as AuditIconSymbol;
  }

}