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
8c790853
Unverified
Commit
8c790853
authored
Sep 09, 2019
by
Andrej Ocenas
Committed by
GitHub
Sep 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Annotations: Fix query editor rendering on datasource change (#18945)
parent
6a064a1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
public/app/features/annotations/editor_ctrl.ts
+5
-2
No files found.
public/app/features/annotations/editor_ctrl.ts
View file @
8c790853
...
@@ -46,7 +46,7 @@ export class AnnotationsEditorCtrl {
...
@@ -46,7 +46,7 @@ export class AnnotationsEditorCtrl {
showOptions
:
any
=
[{
text
:
'All Panels'
,
value
:
0
},
{
text
:
'Specific Panels'
,
value
:
1
}];
showOptions
:
any
=
[{
text
:
'All Panels'
,
value
:
0
},
{
text
:
'Specific Panels'
,
value
:
1
}];
/** @ngInject */
/** @ngInject */
constructor
(
$scope
:
any
,
private
datasourceSrv
:
DatasourceSrv
)
{
constructor
(
private
$scope
:
any
,
private
datasourceSrv
:
DatasourceSrv
)
{
$scope
.
ctrl
=
this
;
$scope
.
ctrl
=
this
;
this
.
dashboard
=
$scope
.
dashboard
;
this
.
dashboard
=
$scope
.
dashboard
;
...
@@ -59,7 +59,10 @@ export class AnnotationsEditorCtrl {
...
@@ -59,7 +59,10 @@ export class AnnotationsEditorCtrl {
}
}
async
datasourceChanged
()
{
async
datasourceChanged
()
{
return
(
this
.
currentDatasource
=
await
this
.
datasourceSrv
.
get
(
this
.
currentAnnotation
.
datasource
));
const
newDatasource
=
await
this
.
datasourceSrv
.
get
(
this
.
currentAnnotation
.
datasource
);
this
.
$scope
.
$apply
(()
=>
{
this
.
currentDatasource
=
newDatasource
;
});
}
}
edit
(
annotation
:
any
)
{
edit
(
annotation
:
any
)
{
...
...
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