vcomply-workflow-engine 2.6.173 → 2.6.175

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.
@@ -3858,82 +3858,42 @@ class WorkflowComplianceComponent {
3858
3858
  case 'assignees':
3859
3859
  const entrustIndex = this.responsibilityForm.assignees.list.findIndex((owner) => owner.employee_id == event.employee_id);
3860
3860
  this.responsibilityForm.assignees.list.splice(entrustIndex, 1);
3861
- if (this.responsibilityForm.program.length) {
3862
- this.refreshListsWhileProgramSelected();
3863
- }
3864
- else {
3865
- this.refreshAllLists();
3866
- }
3861
+ this.callRefreshList();
3867
3862
  break;
3868
3863
  case 'groupassignees':
3869
3864
  const groupIndex = this.responsibilityForm.assigneeGroups.list.findIndex((group) => group.group_id == event.group_id);
3870
3865
  this.responsibilityForm.assigneeGroups.list.splice(groupIndex, 1);
3871
- if (this.responsibilityForm.program.length) {
3872
- this.refreshListsWhileProgramSelected();
3873
- }
3874
- else {
3875
- this.refreshAllLists();
3876
- }
3866
+ this.callRefreshList();
3877
3867
  break;
3878
3868
  case 'reviewer':
3879
3869
  const reviewerIndex = this.responsibilityForm.reviewers.list.findIndex((reviewer) => reviewer.employee_id == event.employee_id);
3880
3870
  this.responsibilityForm.reviewers.list.splice(reviewerIndex, 1);
3881
- if (this.responsibilityForm.program.length) {
3882
- this.refreshListsWhileProgramSelected();
3883
- }
3884
- else {
3885
- this.refreshAllLists();
3886
- }
3871
+ this.callRefreshList();
3887
3872
  break;
3888
3873
  case 'groupReviewer':
3889
3874
  const groupReviewerIndex = this.responsibilityForm.groupReviewers.list.findIndex((reviewer) => reviewer.group_id == event.group_id);
3890
3875
  this.responsibilityForm.groupReviewers.list.splice(groupReviewerIndex, 1);
3891
- if (this.responsibilityForm.program.length) {
3892
- this.refreshListsWhileProgramSelected();
3893
- }
3894
- else {
3895
- this.refreshAllLists();
3896
- }
3876
+ this.callRefreshList();
3897
3877
  break;
3898
3878
  case 'overseer':
3899
3879
  const overseerIndex = this.responsibilityForm.overseers.list.findIndex((overseer) => overseer.employee_id == event.employee_id);
3900
3880
  this.responsibilityForm.overseers.list.splice(overseerIndex, 1);
3901
- if (this.responsibilityForm.program.length) {
3902
- this.refreshListsWhileProgramSelected();
3903
- }
3904
- else {
3905
- this.refreshAllLists();
3906
- }
3881
+ this.callRefreshList();
3907
3882
  break;
3908
3883
  case 'overseerGroup':
3909
3884
  const overseerGroupIndex = this.responsibilityForm.overseersGroups.list.findIndex((overseer) => overseer.group_id == event.group_id);
3910
3885
  this.responsibilityForm.overseersGroups.list.splice(overseerGroupIndex, 1);
3911
- if (this.responsibilityForm.program.length) {
3912
- this.refreshListsWhileProgramSelected();
3913
- }
3914
- else {
3915
- this.refreshAllLists();
3916
- }
3886
+ this.callRefreshList();
3917
3887
  break;
3918
3888
  case 'overseerNotifyList':
3919
3889
  const overseerNotifyIndex = this.responsibilityForm.overseers.notifyList.findIndex((overseerN) => overseerN.employee_id == event.employee_id);
3920
3890
  this.responsibilityForm.overseers.notifyList.splice(overseerNotifyIndex, 1);
3921
- if (this.responsibilityForm.program.length) {
3922
- this.refreshListsWhileProgramSelected();
3923
- }
3924
- else {
3925
- this.refreshAllLists();
3926
- }
3891
+ this.callRefreshList();
3927
3892
  break;
3928
3893
  case 'overseerGroupNotifyList':
3929
3894
  const overseerGroupNotifyIndex = this.responsibilityForm.overseersGroups.notifyList.findIndex((overseerN) => overseerN.group_id == event.group_id);
3930
3895
  this.responsibilityForm.overseersGroups.notifyList.splice(overseerGroupNotifyIndex, 1);
3931
- if (this.responsibilityForm.program.length) {
3932
- this.refreshListsWhileProgramSelected();
3933
- }
3934
- else {
3935
- this.refreshAllLists();
3936
- }
3896
+ this.callRefreshList();
3937
3897
  break;
3938
3898
  case 'category':
3939
3899
  const categoryIndex = this.responsibilityForm.category.findIndex((category) => category.category_id == event.category_id);