aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/shared/pipes/vm-filtering.pipe.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/shared/pipes/vm-filtering.pipe.ts')
-rw-r--r--src/app/shared/pipes/vm-filtering.pipe.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/shared/pipes/vm-filtering.pipe.ts b/src/app/shared/pipes/vm-filtering.pipe.ts
index 6da7840..4c49eb3 100644
--- a/src/app/shared/pipes/vm-filtering.pipe.ts
+++ b/src/app/shared/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;