diff --git a/src/cli/traceViewer/web/ui/actionList.css b/src/cli/traceViewer/web/ui/actionList.css index 970180556a..c58cb701d0 100644 --- a/src/cli/traceViewer/web/ui/actionList.css +++ b/src/cli/traceViewer/web/ui/actionList.css @@ -66,6 +66,13 @@ white-space: nowrap; } +.action-header .action-error { + color: red; + top: 2px; + position: relative; + margin-right: 2px; +} + .action-selector { display: inline; padding-left: 5px; diff --git a/src/cli/traceViewer/web/ui/actionList.tsx b/src/cli/traceViewer/web/ui/actionList.tsx index 94b38c4542..283c758d26 100644 --- a/src/cli/traceViewer/web/ui/actionList.tsx +++ b/src/cli/traceViewer/web/ui/actionList.tsx @@ -20,16 +20,23 @@ import * as React from 'react'; export const ActionList: React.FunctionComponent<{ actions: ActionEntry[], - selectedAction?: ActionEntry, + selectedAction: ActionEntry | undefined, + highlightedAction: ActionEntry | undefined, onSelected: (action: ActionEntry) => void, -}> = ({ actions, selectedAction, onSelected }) => { + onHighlighted: (action: ActionEntry | undefined) => void, +}> = ({ actions, selectedAction, highlightedAction, onSelected, onHighlighted }) => { + const targetAction = highlightedAction || selectedAction; return