diff options
author | Manor, Yanir (ym903w) <ym903w@intl.att.com> | 2018-09-20 14:18:38 +0300 |
---|---|---|
committer | yanir manor <ym903w@intl.att.com> | 2018-09-26 09:34:04 +0000 |
commit | 22eda038b6cb646d63bfaf617372fce2b5d98631 (patch) | |
tree | 0bb3ef9104e02c031305ecfb2ab0692a57b1ed73 /public/src/app/rule-engine/target/target.component.ts | |
parent | 40bb7dc4a104dc7b387b3586e610299b85f903a3 (diff) |
update code to latest
update code to latest
Change-Id: I6ed427434b0da47e0d33507a0992b09fe48f9c52
Issue-ID: DCAEGEN2-821
Signed-off-by: Manor, Yanir (ym903w) <ym903w@intl.att.com>
Diffstat (limited to 'public/src/app/rule-engine/target/target.component.ts')
-rw-r--r-- | public/src/app/rule-engine/target/target.component.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/public/src/app/rule-engine/target/target.component.ts b/public/src/app/rule-engine/target/target.component.ts index c9aa75c..b200144 100644 --- a/public/src/app/rule-engine/target/target.component.ts +++ b/public/src/app/rule-engine/target/target.component.ts @@ -4,7 +4,8 @@ import { ViewChild, Input, Output, - EventEmitter + EventEmitter, + ChangeDetectorRef } from '@angular/core'; import { TreeModel, TreeComponent, ITreeOptions } from 'angular-tree-component'; // import {trigger, state, animate, transition, style} from @@ -36,6 +37,8 @@ export class TargetComponent { animateAcceleration: 1.2 }; + constructor(private changeDetector: ChangeDetectorRef) {} + filterFn(value, treeModel: TreeModel) { treeModel.filterNodes(node => fuzzysearch(value, node.data.name)); } @@ -49,6 +52,7 @@ export class TargetComponent { id: action.target, name: '' }; + this.changeDetector.detectChanges(); } onEvent(event) { |