Pause issue if orchStatus is Active fixed 37/113837/1
authorRachitha Ramappa <rachitha.ramappa@att.com>
Tue, 13 Oct 2020 13:57:45 +0000 (19:27 +0530)
committerRachitha Ramappa <rachitha.ramappa@att.com>
Tue, 13 Oct 2020 14:02:20 +0000 (19:32 +0530)
Change-Id: I345054c1d50e596a7e09a66b9e4161f4e8e22183
Issue-ID: VID-905
Signed-off-by: rachitha.ramappa@att.com
vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/models/vfModule/vfModule.model.info.ts
vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.spec.ts
vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts
vid-webpack-master/src/app/shared/components/auditInfoModal/auditInfoModal.component.html
vid-webpack-master/src/app/shared/components/auditInfoModal/auditInfoModal.component.scss

index 80b2a4b..72b3c39 100644 (file)
@@ -396,8 +396,8 @@ export class VFModuleModelInfo implements ILevelNodeInfo {
         method: (node, serviceModelId) => {
           this._store.dispatch(pauseActionVFModuleInstance(node.data.dynamicModelName, node.parent.data.vnfStoreKey, serviceModelId, node.data.modelName));
         },
-        visible: () => this._sharedTreeService.shouldShowPauseInstantiation(node),
-        enable: () => true,
+        visible: () => (this._sharedTreeService.shouldShowPauseInstantiation(node) && this._sharedTreeService.showPauseWithOrchStatus(node)),
+        enable: () => this._sharedTreeService.showPauseWithOrchStatus(node),
       },
       removePause: {
         method: (node, serviceModelId) => {
index 9a35d48..c82850e 100644 (file)
@@ -536,6 +536,13 @@ describe('Shared Tree Service', () => {
 
 
   });
+  
+  test("showPauseWithOrchStatus test", () => {
+    const node = {
+      "orchStatus":"Active"
+    };
+    expect(service.showPauseWithOrchStatus(node)).toEqual(false);
+  });
 
 });
 
index 51fcf52..0ba90c2 100644 (file)
@@ -228,6 +228,13 @@ export class SharedTreeService {
     }
     return false;
   }
+  
+  showPauseWithOrchStatus(node): boolean {
+    if(node.orchStatus == "Active"){
+      return false;
+    }
+    return true;
+  }
 
   shouldShowPauseInstantiation(node): boolean {
     if(FeatureFlagsService.getFlagState(Features.FLAG_2008_REMOVE_PAUSE_INSTANTIATION, this._store)){
index 038477d..1fc1f4d 100644 (file)
               </thead>
               <tbody>
               <tr class="row" *ngFor="let data of msoInfoData">
-                <td id="msoRequestId" class="col-md-2" style="width: 22%">
+                <td id="msoRequestId" style="width: 22%">
                   <custom-ellipsis [id]="data?.requestId" [value]="data?.requestId" [attr.data-tests-id]="'requestId'"></custom-ellipsis>
                 </td>
-                <td *ngIf="isAlaCarte && isALaCarteFlagOn" class="msoInstanceName col-md-2" style="width: 10%">
+                <td *ngIf="isAlaCarte && isALaCarteFlagOn" class="msoInstanceName" style="width: 10%">
                   <custom-ellipsis [id]="data?.instanceName" [value]="data?.instanceName"></custom-ellipsis>
                 </td>
                 <td id="msoModelType" style="width: 7%">
index 6b1a704..2371842 100644 (file)
@@ -96,8 +96,8 @@ mwlResizable {
 
           .table-bordered {
             margin-top: 10px;
-            font-family: OpenSans-Semibold;
-            font-size: 12px;
+            font-family: inherit;
+            font-size: 13px;
             overflow-x: auto;
             overflow-y: auto;
             //display: block;