File tree Expand file tree Collapse file tree 2 files changed +22
-14
lines changed
Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -111,26 +111,31 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
111111
112112 return ( < div key = { subtask . id } className = "task-details-subtask-item" >
113113 < div className = "task-details-status-icon" >
114- { renderStatusIcon ( subtask . status ) }
114+ { renderStatusIcon ( subtask . human_approval_status || subtask . status ) }
115115 </ div >
116116 < div className = "task-details-subtask-content" >
117- < span className = " task-details-subtask-description" >
117+ < span className = { ` task-details-subtask-description ${ subtask . human_approval_status === "rejected" ? "strikethrough" : "" } ` } >
118118 { description }
119119 </ span >
120120 < div className = "task-details-action-buttons" >
121- < CheckboxChecked20Regular
122- onClick = {
123- canInteract ? ( ) => OnApproveStep ( subtask ) : undefined
124- }
125- className = { canInteract ? "task-details-action-button" : "task-details-action-button-disabled" }
126- />
127- < DismissSquare20Regular
128- onClick = {
129- canInteract ? ( ) => OnRejectStep ( subtask ) : undefined
130- }
131- className = { canInteract ? "task-details-action-button" : "task-details-action-button-disabled" }
132- />
121+ { ( subtask . human_approval_status !== "accepted" && subtask . human_approval_status !== "rejected" ) && (
122+ < >
123+ < CheckboxChecked20Regular
124+ onClick = {
125+ canInteract ? ( ) => OnApproveStep ( subtask ) : undefined
126+ }
127+ className = { canInteract ? "task-details-action-button" : "task-details-action-button-disabled" }
128+ />
129+ < DismissSquare20Regular
130+ onClick = {
131+ canInteract ? ( ) => OnRejectStep ( subtask ) : undefined
132+ }
133+ className = { canInteract ? "task-details-action-button" : "task-details-action-button-disabled" }
134+ />
135+ </ >
136+ ) }
133137 </ div >
138+
134139 </ div >
135140 </ div >
136141 ) ;
Original file line number Diff line number Diff line change 141141.task-details-agent-name {
142142 font-size : var (--fontSizeBase300 );
143143 font-weight : var (--fontWeightSemibold );
144+ }
145+ .strikethrough {
146+ text-decoration : line-through;
144147}
You can’t perform that action at this time.
0 commit comments