aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/shared/pipes
diff options
context:
space:
mode:
authorPatrick Brady <patrick.brady@att.com>2019-03-06 12:11:34 -0800
committerPatrick Brady <patrick.brady@att.com>2019-03-06 12:12:36 -0800
commiteedac3e312c66499ca5ff9d72388c31b25813225 (patch)
tree4cc2f22a0a36ba97823b70fe27ed667383173f0a /src/app/shared/pipes
parent611c9da62c2e266f9facd97dc9f340ce311060a3 (diff)
Revert "multiple asible servers support"
Some functionality was accidentally removed This reverts commit 611c9da62c2e266f9facd97dc9f340ce311060a3. Change-Id: I1aefbbc0ede8cdda59acc8bdf7b047e506aad813 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1510
Diffstat (limited to 'src/app/shared/pipes')
-rw-r--r--src/app/shared/pipes/vm-filtering.pipe.ts24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/app/shared/pipes/vm-filtering.pipe.ts b/src/app/shared/pipes/vm-filtering.pipe.ts
index a036799..c20397b 100644
--- a/src/app/shared/pipes/vm-filtering.pipe.ts
+++ b/src/app/shared/pipes/vm-filtering.pipe.ts
@@ -19,33 +19,19 @@ limitations under the License.
ECOMP is a trademark and service mark of AT&T Intellectual Property.
============LICENSE_END============================================ */
-import { Pipe, PipeTransform } from '@angular/core';
+import {Pipe, PipeTransform} from '@angular/core';
-@Pipe({ name: 'vmFiltering', pure: false })
+@Pipe({name: 'vmFiltering', pure: false})
export class VmFilteringPipe implements PipeTransform {
- transform(value: any, action: any, templateId, newVnfc): any {
- let filterValue
- if(action == 'ConfigScaleOut'){
- filterValue= templateId
- } else if(action == 'Configure' || action == 'ConfigModify'){
- filterValue= newVnfc
- }
- if (action == 'ConfigScaleOut') {
- let x = value.filter(obj => {
- //return value
- return obj['template-id'] == filterValue;
- });
+ transform(value: any, action: any, templateId): any {
-
- return x;
- } else if( action == 'Configure' || action == 'ConfigModify'){
+ if (action == 'ConfigScaleOut') {
let x = value.filter(obj => {
//return value
- return ( obj['vnfcType-id'] == filterValue || obj['vnfcType-id'] == undefined);
+ return obj['template-id'] == templateId;
});
-
return x;
} else {
return value;