Skip to content

Commit 13feee6

Browse files
Merge pull request #312 from microsoft/macae-bug-fixes-2.0
fix: Macae bug fixes for tooltip
2 parents bb4e212 + c0051cc commit 13feee6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontend/src/components/content/TaskDetails.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
149149
<div className="task-details-action-buttons">
150150
{step.human_approval_status !== "accepted" &&
151151
step.human_approval_status !== "rejected" && (
152-
<> <Tooltip relationship="label" content="Approve">
152+
<> <Tooltip relationship="label" content={canInteract?"Approve":"You must first provide feedback to the planner"}>
153153
<Button
154154
icon={<Checkmark20Regular />}
155155
appearance="subtle"
@@ -166,7 +166,7 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
166166
/>
167167
</Tooltip>
168168

169-
<Tooltip relationship="label" content="Reject">
169+
<Tooltip relationship="label" content={canInteract?"Reject":"You must first provide feedback to the planner"}>
170170
<Button
171171
icon={<Dismiss20Regular />}
172172
appearance="subtle"

0 commit comments

Comments
 (0)