Commit 541ce556 by Ivana Huckova Committed by GitHub

Explore: Update tooltips for live tailing buttons (#26799)

* Update tooltips

* Update wordiing
parent d4af3735
......@@ -98,10 +98,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
};
});
const defaultLiveTooltip = () => {
return <>Live</>;
};
type LiveTailButtonProps = {
splitted: boolean;
start: () => void;
......@@ -120,7 +116,7 @@ export function LiveTailButton(props: LiveTailButtonProps) {
return (
<>
<Tooltip content={defaultLiveTooltip} placement="bottom">
<Tooltip content={isLive ? <>Pause the live stream</> : <>Live stream your logs</>} placement="bottom">
<ResponsiveButton
splitted={splitted}
buttonClassName={classNames('btn navbar-button', styles.liveButton, {
......@@ -147,12 +143,14 @@ export function LiveTailButton(props: LiveTailButtonProps) {
}}
>
<div>
<Tooltip content={<>Stop and exit the live stream</>} placement="bottom">
<button
className={`btn navbar-button navbar-button--attached explore-active-button ${styles.isLive}`}
onClick={stop}
>
<Icon className="icon-brand-gradient" name="square-shape" size="lg" type="mono" />
</button>
</Tooltip>
</div>
</CSSTransition>
</>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment