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
36dc70e1
Unverified
Commit
36dc70e1
authored
Jan 20, 2021
by
Torkel Ödegaard
Committed by
GitHub
Jan 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettier: Fixes to files that came in after main upgrade (#30410)
parent
de7d163d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
public/app/features/explore/QueryRow.tsx
+1
-1
public/app/features/query/components/HelpToggle.tsx
+1
-1
public/app/features/query/components/QueryEditorRow.tsx
+5
-2
No files found.
public/app/features/explore/QueryRow.tsx
View file @
36dc70e1
...
...
@@ -156,7 +156,7 @@ export class QueryRow extends PureComponent<QueryRowProps, QueryRowState> {
{
QueryEditor
}
{
DatasourceCheatsheet
&&
(
<
HelpToggle
>
<
DatasourceCheatsheet
onClickExample=
{
query
=>
this
.
onChange
(
query
)
}
datasource=
{
datasourceInstance
}
/>
<
DatasourceCheatsheet
onClickExample=
{
(
query
)
=>
this
.
onChange
(
query
)
}
datasource=
{
datasourceInstance
}
/>
</
HelpToggle
>
)
}
</>
...
...
public/app/features/query/components/HelpToggle.tsx
View file @
36dc70e1
...
...
@@ -16,7 +16,7 @@ export const HelpToggle: React.FunctionComponent = ({ children }) => {
return
(
<>
<
button
className=
"gf-form-label query-keyword pointer"
onClick=
{
_
=>
setIsHelpVisible
(
!
isHelpVisible
)
}
>
<
button
className=
"gf-form-label query-keyword pointer"
onClick=
{
(
_
)
=>
setIsHelpVisible
(
!
isHelpVisible
)
}
>
Help
<
Icon
name=
{
isHelpVisible
?
'angle-down'
:
'angle-right'
}
/>
</
button
>
...
...
public/app/features/query/components/QueryEditorRow.tsx
View file @
36dc70e1
...
...
@@ -229,7 +229,7 @@ export class QueryEditorRow extends PureComponent<Props, State> {
};
onToggleHelp
=
()
=>
{
this
.
setState
(
state
=>
({
this
.
setState
(
(
state
)
=>
({
showingHelp
:
!
state
.
showingHelp
,
}));
};
...
...
@@ -336,7 +336,10 @@ export class QueryEditorRow extends PureComponent<Props, State> {
<
ErrorBoundaryAlert
>
{
showingHelp
&&
DatasourceCheatsheet
&&
(
<
InfoBox
onDismiss=
{
this
.
onToggleHelp
}
>
<
DatasourceCheatsheet
onClickExample=
{
query
=>
this
.
onClickExample
(
query
)
}
datasource=
{
datasource
}
/>
<
DatasourceCheatsheet
onClickExample=
{
(
query
)
=>
this
.
onClickExample
(
query
)
}
datasource=
{
datasource
}
/>
</
InfoBox
>
)
}
{
editor
}
...
...
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