vcomply-workflow-engine 3.1.20 → 3.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +20 -3
- package/esm2020/lib/workflow/shared/constants/message.contstant.mjs +2 -1
- package/fesm2015/vcomply-workflow-engine.mjs +20 -2
- package/fesm2015/vcomply-workflow-engine.mjs.map +1 -1
- package/fesm2020/vcomply-workflow-engine.mjs +20 -2
- package/fesm2020/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +1 -0
- package/lib/workflow/shared/constants/message.contstant.d.ts +1 -0
- package/package.json +1 -1
|
@@ -896,6 +896,7 @@ const OTHER_GRC_TAB_INDEX = {
|
|
|
896
896
|
|
|
897
897
|
const SUCCESS_MESSAGE = {
|
|
898
898
|
ADD_GRC_OBJECT: 'The GRC Object has been added.',
|
|
899
|
+
UPDATE_GRC_OBJECT: 'The GRC Object has been updated.',
|
|
899
900
|
};
|
|
900
901
|
|
|
901
902
|
class ResponsibilityService {
|
|
@@ -5341,6 +5342,7 @@ class GrcObjectContainerComponent {
|
|
|
5341
5342
|
_initiateAPI() {
|
|
5342
5343
|
if (this.MODE === 'EDIT') {
|
|
5343
5344
|
this.getGRCObjectDetails(this.ID);
|
|
5345
|
+
this.smileyMessage = SUCCESS_MESSAGE.UPDATE_GRC_OBJECT;
|
|
5344
5346
|
}
|
|
5345
5347
|
else {
|
|
5346
5348
|
this.detailsLoader = false;
|
|
@@ -5470,8 +5472,7 @@ class GrcObjectContainerComponent {
|
|
|
5470
5472
|
this.apiService.getGRCObjectDetails(grcId).subscribe({
|
|
5471
5473
|
next: (data) => {
|
|
5472
5474
|
this.openedPopup = '';
|
|
5473
|
-
this.
|
|
5474
|
-
this.grcPayload.type = data?.type;
|
|
5475
|
+
this.populatePayload(data);
|
|
5475
5476
|
this.detailsLoader = false;
|
|
5476
5477
|
this._getRCList();
|
|
5477
5478
|
this._getOwnerList();
|
|
@@ -5482,6 +5483,22 @@ class GrcObjectContainerComponent {
|
|
|
5482
5483
|
},
|
|
5483
5484
|
});
|
|
5484
5485
|
}
|
|
5486
|
+
populatePayload(data) {
|
|
5487
|
+
this.grcPayload.name = data?.name;
|
|
5488
|
+
this.grcPayload.type = data?.type;
|
|
5489
|
+
this.grcPayload.owners = data?.owners;
|
|
5490
|
+
this.grcPayload.rc_ids = data?.rc_ids;
|
|
5491
|
+
this.grcPayload.linked_grc_ids = data?.linked_grc_ids;
|
|
5492
|
+
this.grcPayload.risk_category_ids = data?.risk_category_ids;
|
|
5493
|
+
this.grcPayload.attributes = data?.attributes;
|
|
5494
|
+
this.grcPayload.state = data?.state;
|
|
5495
|
+
this.grcPayload.description = data?.description;
|
|
5496
|
+
this.grcPayload.frequency = data?.frequency;
|
|
5497
|
+
this.grcPayload.parent_grc_ids = data?.parent_grc_ids;
|
|
5498
|
+
this.grcPayload.email_notification_member_ids =
|
|
5499
|
+
data?.email_notification_member_ids;
|
|
5500
|
+
this.grcPayload.program_category_ids = data?.program_category_ids;
|
|
5501
|
+
}
|
|
5485
5502
|
saveGRCObject() {
|
|
5486
5503
|
this.isFormSubmitted = true;
|
|
5487
5504
|
if (this.grcForm.grcObjectType) {
|
|
@@ -5518,6 +5535,7 @@ class GrcObjectContainerComponent {
|
|
|
5518
5535
|
}
|
|
5519
5536
|
resetGRCObject() {
|
|
5520
5537
|
this.MODE = 'CREATE';
|
|
5538
|
+
this.smileyMessage = SUCCESS_MESSAGE.ADD_GRC_OBJECT;
|
|
5521
5539
|
this.grcPayload = JSON.parse(JSON.stringify(this.grcService.GRC_PAYLOAD));
|
|
5522
5540
|
this.grcPayload.type = this.grcType;
|
|
5523
5541
|
this.isFormSubmitted = false;
|