vcomply-workflow-engine 6.2.5 → 6.2.6

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.
@@ -37229,30 +37229,7 @@ class WorkflowPolicyComponent {
37229
37229
  const event = this.policyForm.policyName;
37230
37230
  const re = /&nbsp;|<br>/g;
37231
37231
  this.policyForm.policyName = event.replace(re, '').trim();
37232
- if (this.policyForm.policyName.trim() == '' ||
37233
- (!this.policyForm?.frequency_details &&
37234
- ((this.policyForm?.selectedAssignees?.length > 0 &&
37235
- !this.groupEnabled) ||
37236
- ((this.policyForm?.selectedAssignees?.length > 0 ||
37237
- this.policyForm?.selectedGroupAssignee?.length > 0) &&
37238
- this.groupEnabled))) ||
37239
- (this.policyForm?.frequency_details &&
37240
- this.policyForm?.selectedAssignees?.length == 0 &&
37241
- (!this.groupEnabled ||
37242
- (this.policyForm?.selectedGroupAssignee?.length == 0 &&
37243
- this.groupEnabled))) ||
37244
- (!this.policyForm.review_frequency_details &&
37245
- this.policyForm.selectedReviewers.length > 0) ||
37246
- (this.policyForm.review_frequency_details &&
37247
- this.policyForm.selectedReviewers.length == 0) ||
37248
- this.policyForm.selectedCategories.length == 0 ||
37249
- (!this.policyForm?.selectedApprovers[0]?.approval_workflow?.length &&
37250
- !this.policyForm?.selectedApprovers[0]?.approvers?.length &&
37251
- this.policyApprovalFlag === 0) ||
37252
- (this.formatEvidence && this.formatEvidence.newLink.containsError) ||
37253
- !this.policyForm.policy_owners?.length ||
37254
- (this.isSendForAttestation &&
37255
- this.policyForm?.selectedAssignees.length === 0)) {
37232
+ if (this.policyForm.policyName.trim() == '') {
37256
37233
  return false;
37257
37234
  }
37258
37235
  else {
@@ -37265,10 +37242,10 @@ class WorkflowPolicyComponent {
37265
37242
  */
37266
37243
  submitPolicy() {
37267
37244
  this.submitted = false;
37268
- // const valid = this.validatePolicy();
37269
- // if (!valid || !this.isVersionValid) {
37270
- // return false;
37271
- // }
37245
+ const valid = this.validatePolicy();
37246
+ if (!valid) {
37247
+ return false;
37248
+ }
37272
37249
  this.loader = true;
37273
37250
  this.uiKitService.isLoader = true;
37274
37251
  if (this.noWorkflowSelected) {