@valtimo/task 13.50.0 → 13.51.0

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.
@@ -2086,7 +2086,7 @@ class TaskDetailModalComponent {
2086
2086
  }
2087
2087
  refreshTask(response) {
2088
2088
  const currentTask = this.task$.getValue();
2089
- const fetchedTask = response.task;
2089
+ const fetchedTask = response?.task;
2090
2090
  if (!currentTask || !fetchedTask)
2091
2091
  return;
2092
2092
  const mergedTask = { ...currentTask };
@@ -2097,6 +2097,16 @@ class TaskDetailModalComponent {
2097
2097
  }
2098
2098
  this.task$.next(mergedTask);
2099
2099
  }
2100
+ loadFullTask(taskId) {
2101
+ // No error toast on 403/404 — view permission check closes the modal
2102
+ this.taskService
2103
+ .getTask(taskId, ['403', '404'])
2104
+ .pipe(catchError$1(() => EMPTY))
2105
+ .subscribe(response => {
2106
+ if (this.task$.getValue()?.id === taskId)
2107
+ this.refreshTask(response);
2108
+ });
2109
+ }
2100
2110
  showAssigneeNotification(task) {
2101
2111
  if (task.assignee) {
2102
2112
  this.globalNotificationService.showToast({
@@ -2119,6 +2129,9 @@ class TaskDetailModalComponent {
2119
2129
  this.processLinkPreloaded$.next(false);
2120
2130
  if (task) {
2121
2131
  this.task$.next({ ...task });
2132
+ // Case-specific list rows only hold column values, not the assignment
2133
+ if (!('assignedTeam' in task))
2134
+ this.loadFullTask(task.id);
2122
2135
  }
2123
2136
  this.setPageFromTask(task);
2124
2137
  this.openModal();