blob: 31e1b82fdd7a6257c393b51700d0315dd15a2de7 [file] [log] [blame] [edit]
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({name: 'labelListToString'})
export class LabelListToStringPipe implements PipeTransform {
transform(
labelList: string[],
labelFilterSet: Set<string>,
filterLabels: boolean
): any {
return filterLabels
? labelList.filter(item => !labelFilterSet.has(item)).join(', ')
: labelList;
}
}