Skip to content

Commit

Permalink
add tooltip
Browse files Browse the repository at this point in the history
Signed-off-by: aviya-gidan <[email protected]>
  • Loading branch information
aviya-gidan committed Oct 30, 2024
1 parent 676a9e7 commit 4d03f68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/app/pages/tasks/useTaskActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const useTaskActions = (task: Task) => {
isAriaDisabled: !canCancel(task.state),
tooltipProps: {
content: !canCancel(task.state)
? `${t("message.cancelNotAvailable", { statusName: task.state })}`
? t("message.cancelNotAvailable", { statusName: task.state })
: "",
},
onClick: () => cancelTask(task.id),
Expand All @@ -85,9 +85,9 @@ export const useTaskActions = (task: Task) => {
onClick: () => togglePreemption(task),
tooltipProps: {
content: !canTogglePreemption(task.state)
? `${t("message.togglePreemptionNotAvailable", {
? t("message.togglePreemptionNotAvailable", {
statusName: task.state,
})}`
})
: "",
},
},
Expand Down

0 comments on commit 4d03f68

Please sign in to comment.