import { Component , Input , ViewEncapsulation } from '@angular/core' ; import { TranslationService } from '@alfresco/adf-core' ; @ Component ( { selector : 'aca-custom-thumbnail-column' , templateUrl : './thumbnail-column.component.html' , encapsulation : ViewEncapsulation . None } ) export class ThumbnailColumnComponent { @ Input ( ) context : any ; constructor ( private translation ) { } getThumbnail ( { data , row , col } ) { return data . getValue ( row , col ) ; } getToolTip ( { row } ) { const user = row . node ?. entry ?. properties && row . node . entry . properties [ 'cm:lockOwner' ] && row . node . entry . properties [ 'cm:lockOwner' ] . displayName ; return user ? `${ this . translation . instant ( 'APP.LOCKED_BY' ) } ${ user }` : '' ; } }