X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fapp%2Fpipes%2Fvm-filtering.pipe.ts;fp=src%2Fapp%2Fpipes%2Fvm-filtering.pipe.ts;h=ec1aaa307ee83a3b348fecf5f48903bb620d530e;hb=700ac8a7ec822f1b7a0505319e4c453ca045d2ed;hp=6da78405fca63873db109865aa1635ed0d102f60;hpb=773f970c50772cddf75f7c7918935315e55d4e2d;p=appc%2Fcdt.git diff --git a/src/app/pipes/vm-filtering.pipe.ts b/src/app/pipes/vm-filtering.pipe.ts index 6da7840..ec1aaa3 100644 --- a/src/app/pipes/vm-filtering.pipe.ts +++ b/src/app/pipes/vm-filtering.pipe.ts @@ -25,12 +25,12 @@ export class VmFilteringPipe implements PipeTransform { transform(value: any, action: any, templateId, newVnfc): any { let filterValue - if(action == 'ConfigScaleOut'){ + if(action == 'ConfigScaleOut' || action == 'ConfigScaleIn'){ filterValue= templateId } else if(action == 'Configure' || action == 'ConfigModify' || action == 'DistributeTraffic' || action == 'DistributeTrafficCheck'){ filterValue= newVnfc } - if (action == 'ConfigScaleOut') { + if (action == 'ConfigScaleOut' || action == 'ConfigScaleIn' ) { let x = value.filter(obj => { //return value return obj['template-id'] == filterValue;