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
916f9bef
Unverified
Commit
916f9bef
authored
Jan 18, 2019
by
Torkel Ödegaard
Committed by
GitHub
Jan 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14944 from grafana/explore-datasource-editor-fix
Fixed issue with explore angular query editor support
parents
90a324b4
f2498645
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
public/app/features/dashboard/panel_editor/QueryEditorRow.tsx
+1
-1
public/app/features/explore/QueryEditor.tsx
+3
-7
No files found.
public/app/features/dashboard/panel_editor/QueryEditorRow.tsx
View file @
916f9bef
...
...
@@ -51,7 +51,7 @@ export class QueryEditorRow extends PureComponent<Props, State> {
target
:
query
,
panel
:
panel
,
refresh
:
()
=>
panel
.
refresh
(),
render
:
()
=>
panel
.
render
,
render
:
()
=>
panel
.
render
()
,
events
:
panel
.
events
,
};
}
...
...
public/app/features/explore/QueryEditor.tsx
View file @
916f9bef
...
...
@@ -3,7 +3,6 @@ import React, { PureComponent } from 'react';
// Services
import
{
getAngularLoader
,
AngularComponent
}
from
'app/core/services/AngularLoader'
;
import
{
getIntervals
}
from
'app/core/utils/explore'
;
import
{
getTimeSrv
}
from
'app/features/dashboard/time_srv'
;
// Types
...
...
@@ -37,8 +36,9 @@ export default class QueryEditor extends PureComponent<QueryEditorProps, any> {
const
template
=
'<plugin-component type="query-ctrl"> </plugin-component>'
;
const
target
=
{
datasource
:
datasource
.
name
,
...
initialQuery
};
const
scopeProps
=
{
target
,
ctrl
:
{
datasource
,
target
,
refresh
:
()
=>
{
this
.
props
.
onQueryChange
(
target
,
false
);
this
.
props
.
onExecuteQuery
();
...
...
@@ -48,11 +48,7 @@ export default class QueryEditor extends PureComponent<QueryEditorProps, any> {
datasource
,
targets
:
[
target
],
},
dashboard
:
{
getNextQueryLetter
:
x
=>
''
,
},
hideEditorRowActions
:
true
,
...
getIntervals
(
range
,
(
datasource
||
{}).
interval
,
null
),
// Possible to get resolution?
dashboard
:
{},
},
};
...
...
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