vcomply-workflow-engine 2.1.92 → 2.1.93
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/bundles/vcomply-workflow-engine.umd.js +4 -3
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/workflow-program/workflow-program.component.js +5 -4
- package/fesm2015/vcomply-workflow-engine.js +4 -3
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/package.json +1 -1
|
@@ -23161,10 +23161,11 @@ class WorkflowProgramComponent {
|
|
|
23161
23161
|
fetchRoles() {
|
|
23162
23162
|
this.programService.getRoles().subscribe({
|
|
23163
23163
|
next: (res) => {
|
|
23164
|
-
var _a, _b, _c, _d;
|
|
23164
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
23165
23165
|
this.lists.ROLES = res;
|
|
23166
|
-
const
|
|
23167
|
-
this.lists.
|
|
23166
|
+
const defaultSystemVal = (_d = (_c = (_b = (_a = this.lists) === null || _a === void 0 ? void 0 : _a.ROLES) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.filter((ele) => (ele === null || ele === void 0 ? void 0 : ele.roleType) === "system role")) === null || _d === void 0 ? void 0 : _d.map((ele) => ele === null || ele === void 0 ? void 0 : ele._id);
|
|
23167
|
+
const defaultVal = (_g = (_f = (_e = this.lists) === null || _e === void 0 ? void 0 : _e.ROLES) === null || _f === void 0 ? void 0 : _f.data) === null || _g === void 0 ? void 0 : _g.filter((ele) => (ele === null || ele === void 0 ? void 0 : ele.roleType) === "system role");
|
|
23168
|
+
this.lists.SYSTEM_ROLE_IDS = defaultSystemVal;
|
|
23168
23169
|
if (this.mode !== 'EDIT') {
|
|
23169
23170
|
this.setFormField('program_roles', defaultVal);
|
|
23170
23171
|
this.fetchUsersAssociatedWithRoles();
|