(props: ActionButtonsProps)
| 10 | } |
| 11 | |
| 12 | export function ActionButtons(props: ActionButtonsProps) { |
| 13 | const styles = useStyles() |
| 14 | |
| 15 | return ( |
| 16 | <div class={styles().actionsRow}> |
| 17 | <button |
| 18 | class={styles().actionButton} |
| 19 | onMouseDown={() => { |
| 20 | formEventClient.emit('request-form-state', { |
| 21 | id: props.selectedInstance()?.id as string, |
| 22 | }) |
| 23 | }} |
| 24 | > |
| 25 | <span class={styles().actionDotGreen} /> |
| 26 | Flush |
| 27 | </button> |
| 28 | |
| 29 | <button |
| 30 | class={styles().actionButton} |
| 31 | onMouseDown={() => { |
| 32 | formEventClient.emit('request-form-reset', { |
| 33 | id: props.selectedInstance()?.id as string, |
| 34 | }) |
| 35 | }} |
| 36 | > |
| 37 | <span class={styles().actionDotRed} /> |
| 38 | Reset |
| 39 | </button> |
| 40 | |
| 41 | <button |
| 42 | class={styles().actionButton} |
| 43 | onMouseDown={() => { |
| 44 | formEventClient.emit('request-form-force-submit', { |
| 45 | id: props.selectedInstance()?.id as string, |
| 46 | }) |
| 47 | }} |
| 48 | > |
| 49 | <span class={styles().actionDotYellow} /> |
| 50 | Submit (-f) |
| 51 | </button> |
| 52 | </div> |
| 53 | ) |
| 54 | } |
nothing calls this directly
no test coverage detected