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
9b5890cc
Commit
9b5890cc
authored
Aug 02, 2019
by
kay delaney
Committed by
Torkel Ödegaard
Aug 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QueryEditors: Fixes flakey text edit mode toggle (#18335)
Closes #18037
parent
5f4b5dfe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
public/app/features/dashboard/panel_editor/QueryEditorRow.tsx
+1
-7
No files found.
public/app/features/dashboard/panel_editor/QueryEditorRow.tsx
View file @
9b5890cc
...
...
@@ -83,7 +83,7 @@ export class QueryEditorRow extends PureComponent<Props, State> {
this
.
setState
({
datasource
,
loadedDataSourceValue
:
this
.
props
.
dataSourceValue
,
hasTextEditMode
:
false
,
hasTextEditMode
:
_
.
has
(
datasource
,
'components.QueryCtrl.prototype.toggleEditorMode'
)
,
});
}
...
...
@@ -122,14 +122,8 @@ export class QueryEditorRow extends PureComponent<Props, State> {
const
loader
=
getAngularLoader
();
const
template
=
'<plugin-component type="query-ctrl" />'
;
const
scopeProps
=
{
ctrl
:
this
.
getAngularQueryComponentScope
()
};
this
.
angularQueryEditor
=
loader
.
load
(
this
.
element
,
scopeProps
,
template
);
this
.
angularScope
=
scopeProps
.
ctrl
;
// give angular time to compile
setTimeout
(()
=>
{
this
.
setState
({
hasTextEditMode
:
!!
this
.
angularScope
.
toggleEditorMode
});
},
100
);
}
onToggleCollapse
=
()
=>
{
...
...
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