Files
doneit-web/src/app/pipes/publication.pipe.ts
T

30 lines
774 B
TypeScript
Raw Normal View History

2021-08-23 11:30:42 +01:00
import { Pipe, PipeTransform } from '@angular/core';
import { Publication } from 'src/app/models/publication';
@Pipe({
name: 'publication'
})
export class PublicationPipe implements PipeTransform {
transform(value: unknown, ...args: unknown[]): unknown {
return null;
}
itemList(element ): Publication {
return {
"DateIndex": element.DateIndex,
"DocumentId":element.DocumentId,
"ProcessId":element.ProcessId,
"Title":element.Title,
"Message": element.Message,
"DatePublication": element.DatePublication,
/* image:itemImage, */
"FileBase64": "data:image/jpg;base64," + element.FileBase64,
"OriginalFileName": '',
"FileExtension": '',
"OrganicEntityId": element.OrganicEntityId
}
}
}