diff options
author | RachithaRamappa93 <rachitha.ramappa@att.com> | 2021-01-27 18:43:58 +0530 |
---|---|---|
committer | Ikram Ikramullah <ikram@research.att.com> | 2021-02-02 20:12:35 +0000 |
commit | 0fcfb59f750894e7be6d087c61672a68ed4679d8 (patch) | |
tree | 12139b118e983bcbbd0ab3d27b82f091c33c2cfa /vid-webpack-master/src/app/drawingBoard | |
parent | 5340236b84bd3289e5f5010158a0f40a4b1edb32 (diff) |
Audit screen corrections from drawing board
Change-Id: Ia1479d18f9af34e39258bd68ae0b14cb52f3fbd0
Issue-ID: VID-945
Signed-off-by: rachitha.ramappa@att.com
Diffstat (limited to 'vid-webpack-master/src/app/drawingBoard')
-rw-r--r-- | vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-header/drawing-board-header.service.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-header/drawing-board-header.service.ts b/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-header/drawing-board-header.service.ts index 8cebb23e9..80ce6e055 100644 --- a/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-header/drawing-board-header.service.ts +++ b/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-header/drawing-board-header.service.ts @@ -12,6 +12,7 @@ import {ErrorMsgService} from "../../../shared/components/error-msg/error-msg.se import {DrawingBoardModes} from "../drawing-board.modes"; import {ServiceInstance} from "../../../shared/models/serviceInstance"; import {FeatureFlagsService, Features} from "../../../shared/services/featureFlag/feature-flags.service"; +import {ServiceInfoModel} from "../../../shared/server/serviceInfo/serviceInfo.model"; @Injectable() export class DrawingBoardHeaderService{ @@ -48,7 +49,13 @@ export class DrawingBoardHeaderService{ showAuditInfo(serviceModelId) : void { let instance: ServiceInstance = this.store.getState().service.serviceInstance[serviceModelId]; let model = new ServiceModel(this.store.getState().service.serviceHierarchy[serviceModelId]); - AuditInfoModalComponent.openInstanceAuditInfoModal.next({instanceId : serviceModelId , type : 'SERVICE', model : model , instance : instance}); + let serviceInfoModel: ServiceInfoModel = this.store.getState().service.serviceInfoModel; + console.log("ShowAuditInfo : ServiceInfoModel from drawing-board-header service : ", serviceInfoModel); + if(serviceInfoModel != null || serviceInfoModel != undefined){ + AuditInfoModalComponent.openModal.next(serviceInfoModel); + } else{ + AuditInfoModalComponent.openInstanceAuditInfoModal.next({instanceId : serviceModelId , type : 'SERVICE', model : model , instance : instance}); + } } toggleResumeService(serviceModelId, isResume: boolean) : void { |