diff options
Diffstat (limited to 'src/app/pipes/vm-filtering.pipe.ts')
-rw-r--r-- | src/app/pipes/vm-filtering.pipe.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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; |