8377ccf425145d981af1cb6c510a08f331e2f1fa
[vid.git] /
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 }