Load template button in new template modal
[vid.git] / vid-webpack-master / src / app / shared / components / genericFormPopup / instantiationTemplatesModal / instantiation.templates.modal.service.ts
1 import {Injectable} from "@angular/core";
2 import {InstantiationTemplatesRowModel} from "./instantiation.templates.row.model";
3
4 @Injectable()
5 export class InstantiationTemplatesModalService {
6
7   convertResponseToUI = (jobsResponse: any[]): InstantiationTemplatesRowModel[] => {
8     let tableRows: InstantiationTemplatesRowModel[] = [];
9
10     jobsResponse.forEach((job) => {
11       tableRows.push(new InstantiationTemplatesRowModel(job));
12     });
13
14     return tableRows;
15   };
16
17 }