Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
541ce556
Unverified
Commit
541ce556
authored
Aug 05, 2020
by
Ivana Huckova
Committed by
GitHub
Aug 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explore: Update tooltips for live tailing buttons (#26799)
* Update tooltips * Update wordiing
parent
d4af3735
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
public/app/features/explore/LiveTailButton.tsx
+3
-5
No files found.
public/app/features/explore/LiveTailButton.tsx
View file @
541ce556
...
@@ -98,10 +98,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
...
@@ -98,10 +98,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
};
};
});
});
const
defaultLiveTooltip
=
()
=>
{
return
<>
Live
</>;
};
type
LiveTailButtonProps
=
{
type
LiveTailButtonProps
=
{
splitted
:
boolean
;
splitted
:
boolean
;
start
:
()
=>
void
;
start
:
()
=>
void
;
...
@@ -120,7 +116,7 @@ export function LiveTailButton(props: LiveTailButtonProps) {
...
@@ -120,7 +116,7 @@ export function LiveTailButton(props: LiveTailButtonProps) {
return
(
return
(
<>
<>
<
Tooltip
content=
{
defaultLiveTooltip
}
placement=
"bottom"
>
<
Tooltip
content=
{
isLive
?
<>
Pause the live stream
</>
:
<>
Live stream your logs
</>
}
placement=
"bottom"
>
<
ResponsiveButton
<
ResponsiveButton
splitted=
{
splitted
}
splitted=
{
splitted
}
buttonClassName=
{
classNames
(
'btn navbar-button'
,
styles
.
liveButton
,
{
buttonClassName=
{
classNames
(
'btn navbar-button'
,
styles
.
liveButton
,
{
...
@@ -147,12 +143,14 @@ export function LiveTailButton(props: LiveTailButtonProps) {
...
@@ -147,12 +143,14 @@ export function LiveTailButton(props: LiveTailButtonProps) {
}
}
}
}
>
>
<
div
>
<
div
>
<
Tooltip
content=
{
<>
Stop and exit the live stream
</>
}
placement=
"bottom"
>
<
button
<
button
className=
{
`btn navbar-button navbar-button--attached explore-active-button ${styles.isLive}`
}
className=
{
`btn navbar-button navbar-button--attached explore-active-button ${styles.isLive}`
}
onClick=
{
stop
}
onClick=
{
stop
}
>
>
<
Icon
className=
"icon-brand-gradient"
name=
"square-shape"
size=
"lg"
type=
"mono"
/>
<
Icon
className=
"icon-brand-gradient"
name=
"square-shape"
size=
"lg"
type=
"mono"
/>
</
button
>
</
button
>
</
Tooltip
>
</
div
>
</
div
>
</
CSSTransition
>
</
CSSTransition
>
</>
</>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment