import { Component , EventEmitter , Input , OnInit , Output } from '@angular/core' ; import { CmdbLink } from '../../../../models/cmdb-link' ; import { LinkService } from '../../../../services/link.service' ; import { AccessControlList } from '../../../../../acl/acl.types' ; @ Component ( { selector : 'cmdb-object-links-table-action-cell' , templateUrl : './object-links-table-action-cell.component.html' , styleUrls : [ './object-links-table-action-cell.component.scss' ] } ) export class ObjectLinksTableActionCellComponent { public link : CmdbLink ; @ Input ( ) public objectID : number ; @ Input ( ) public acl : AccessControlList ; public partnerLinkID : number ; @ Input ( 'link' ) public set Link ( link ) { this . link = link ; this . partnerLinkID = this . linkService . getPartnerID ( this . objectID , link ) ; } @ Output ( ) deleteEmitter : EventEmitter < CmdbLink > = new EventEmitter ( ) ; constructor ( private linkService ) { } }