Skip to content

Commit

Permalink
Rename full task object in TaskManagerTask to _
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Szwajkowski <[email protected]>
  • Loading branch information
rszwajko committed Jul 9, 2024
1 parent d4a064a commit 6ec0465
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/app/components/task-manager/TaskManagerDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ interface TaskManagerTask {
preemptEnabled: boolean;

// full object to be used with library functions
task: Task;
_: Task;
}

const PAGE_SIZE = 20;
Expand Down Expand Up @@ -161,7 +161,7 @@ const TaskItem: React.FC<{
: `${task.id} (${task.addon}) - ${task.applicationName} - ${
task.priority ?? 0
}`;
const taskActionItems = useTaskActions(task.task);
const taskActionItems = useTaskActions(task._);

return (
<NotificationDrawerListItem
Expand Down Expand Up @@ -271,7 +271,7 @@ const useTaskManagerData = () => {
applicationName: task.application.name,
preemptEnabled: task?.policy?.preemptEnabled ?? false,

task,
_: task,

// TODO: Add any checks that could be needed later...
// - isCancelable (does the current user own the task? other things to check?)
Expand Down

0 comments on commit 6ec0465

Please sign in to comment.