diff options
author | ikram <ikram@research.att.com> | 2020-07-22 10:28:15 -0400 |
---|---|---|
committer | ikram <ikram@research.att.com> | 2020-07-29 12:10:13 -0400 |
commit | 09a6562a16715a2b89be11c941486be783c72364 (patch) | |
tree | 1be9688b1cf602b3c2e07852bd15772db2f9a546 /vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts | |
parent | a643d19710317384571fb49f28d9de4f1a17778d (diff) |
Test Cases Addition and Fixes
Issue-ID: VID-858
Integration Tests are edited in this patch to support functionality in VID-858.
Signed-off-by: ikram <ikram@research.att.com>
Change-Id: I378cb2afd0f2c994a856ad31895cec3fca376b33
Diffstat (limited to 'vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts')
-rw-r--r-- | vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts b/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts index 98edb4161..3b00e64c3 100644 --- a/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts +++ b/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts @@ -1,7 +1,7 @@ import {Injectable} from "@angular/core"; import {NgRedux} from "@angular-redux/store"; import {AppState} from "../../../shared/store/reducers"; -import {ServiceInstanceActions} from "../../../shared/models/serviceInstanceActions"; +import {PauseStatus, ServiceInstanceActions} from "../../../shared/models/serviceInstanceActions"; import {MessageBoxData} from "../../../shared/components/messageBox/messageBox.data"; import {MessageBoxService} from "../../../shared/components/messageBox/messageBox.service"; import * as _ from "lodash"; @@ -222,7 +222,17 @@ export class SharedTreeService { } } - shouldShowPauseInstantiation(): boolean { + shouldShowRemovePause(node) : boolean { + if(FeatureFlagsService.getFlagState(Features.FLAG_2008_REMOVE_PAUSE_INSTANTIATION, this._store)){ + return node.pauseInstantiation === PauseStatus.AFTER_COMPLETION; + } + return false; + } + + shouldShowPauseInstantiation(node): boolean { + if(FeatureFlagsService.getFlagState(Features.FLAG_2008_REMOVE_PAUSE_INSTANTIATION, this._store)){ + return (FeatureFlagsService.getFlagState(Features.FLAG_2006_PAUSE_VFMODULE_INSTANTIATION_CREATION, this._store) && node.pauseInstantiation == null); + } return (FeatureFlagsService.getFlagState(Features.FLAG_2006_PAUSE_VFMODULE_INSTANTIATION_CREATION, this._store)); } /**************************************************** |