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) => {
});
+
+ test("showPauseWithOrchStatus test", () => {
+ const node = {
+ "orchStatus":"Active"
+ };
+ expect(service.showPauseWithOrchStatus(node)).toEqual(false);
+ });
});
}
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)){
</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%">
.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;