Merge "Product family ID on VNF should be mandatory"
[vid.git] / vid-webpack-master / src / app / shared / components / model-information / model-information.service.ts
1 import {Injectable} from "@angular/core";
2 import * as _ from 'lodash';
3 import {ModelInformationItem} from "./model-information.component";
4
5 @Injectable()
6 export class ModelInformationService {
7
8   filterModelItems(_modelInformationItems: ModelInformationItem[]) {
9     return _modelInformationItems.filter(x => x.mandatory || (
10       !_.isEmpty(x.values)
11       && !_.isNil(x.values[0])
12       && x.values[0].toString().trim()!=""
13       ));
14   }
15 }
16