|
|
|
@ -14,6 +14,8 @@ export const PanelHeaderLoadingIndicator = ({ state, onClick }: Props) => { |
|
|
|
|
|
|
|
|
|
if (state === LoadingState.Loading) { |
|
|
|
|
return ( |
|
|
|
|
// TODO: fix keyboard a11y
|
|
|
|
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
|
|
|
<div className="panel-loading" onClick={onClick}> |
|
|
|
|
<Tooltip content="Cancel query"> |
|
|
|
|
<Icon className="panel-loading__spinner spin-clockwise" name="sync" /> |
|
|
|
@ -24,6 +26,8 @@ export const PanelHeaderLoadingIndicator = ({ state, onClick }: Props) => { |
|
|
|
|
|
|
|
|
|
if (state === LoadingState.Streaming) { |
|
|
|
|
return ( |
|
|
|
|
// TODO: fix keyboard a11y
|
|
|
|
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
|
|
|
<div className="panel-loading" onClick={onClick}> |
|
|
|
|
<div title="Streaming (click to stop)" className={styles.streamIndicator} /> |
|
|
|
|
</div> |
|
|
|
|