aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/shared/pipes/vm-filtering.pipe.ts
diff options
context:
space:
mode:
authorLiu <yongqiang.liu@nokia-sbell.com>2020-01-27 10:59:12 +0800
committerTaka Cho <takamune.cho@att.com>2020-02-05 09:48:24 -0500
commit700ac8a7ec822f1b7a0505319e4c453ca045d2ed (patch)
tree628c687faf129b6c3f87fe1e6b9b5c11fc2417ac /src/app/shared/pipes/vm-filtering.pipe.ts
parent773f970c50772cddf75f7c7918935315e55d4e2d (diff)
add new action configscalein for cdt
Change-Id: I2f05079b7c2428351332ac84c1ea56f31d4a38d9 Issue-ID: APPC-1760 Signed-off-by: Taka Cho <takamune.cho@att.com>
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;