File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/frontend/src/components/content Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments