({ flow })
| 155 | timestamp.headerName = "Start time"; |
| 156 | |
| 157 | export const quickactions: FlowColumn = ({ flow }) => { |
| 158 | const dispatch = useAppDispatch(); |
| 159 | |
| 160 | let resume_or_replay: ReactElement<any> | null = null; |
| 161 | if (flow.intercepted) { |
| 162 | resume_or_replay = ( |
| 163 | <a |
| 164 | href="#" |
| 165 | className="quickaction" |
| 166 | onClick={() => dispatch(flowActions.resume([flow]))} |
| 167 | > |
| 168 | <i className="fa fa-fw fa-play text-success" /> |
| 169 | </a> |
| 170 | ); |
| 171 | } else if (canReplay(flow)) { |
| 172 | resume_or_replay = ( |
| 173 | <a |
| 174 | href="#" |
| 175 | className="quickaction" |
| 176 | onClick={() => dispatch(flowActions.replay([flow]))} |
| 177 | > |
| 178 | <i className="fa fa-fw fa-repeat text-primary" /> |
| 179 | </a> |
| 180 | ); |
| 181 | } |
| 182 | |
| 183 | return ( |
| 184 | <td className="col-quickactions"> |
| 185 | {resume_or_replay ? <div>{resume_or_replay}</div> : <></>} |
| 186 | </td> |
| 187 | ); |
| 188 | }; |
| 189 | quickactions.headerName = ""; |
| 190 | |
| 191 | export const comment: FlowColumn = ({ flow }) => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…