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
551b802d
Commit
551b802d
authored
Jul 20, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Annotation datasource redesign is done, Closes #608
parent
5ae86077
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
src/app/panels/annotations/editor.js
+4
-0
src/app/panels/annotations/module.js
+1
-1
src/app/services/datasourceSrv.js
+2
-1
No files found.
src/app/panels/annotations/editor.js
View file @
551b802d
...
...
@@ -42,6 +42,10 @@ function (angular, app, _) {
$scope
.
currentAnnotation
=
annotation
;
$scope
.
currentIsNew
=
false
;
$scope
.
currentDatasource
=
_
.
findWhere
(
$scope
.
datasources
,
{
name
:
annotation
.
datasource
});
if
(
!
$scope
.
currentDatasource
)
{
$scope
.
currentDatasource
=
$scope
.
datasources
[
0
];
}
};
$scope
.
update
=
function
()
{
...
...
src/app/panels/annotations/module.js
View file @
551b802d
...
...
@@ -27,7 +27,7 @@ function (angular, app, _) {
annotations
:
[]
};
_
.
defaults
(
$scope
.
panel
,
_d
);
_
.
defaults
(
$scope
.
panel
,
_d
);
$scope
.
hide
=
function
(
annotation
)
{
annotation
.
enable
=
!
annotation
.
enable
;
...
...
src/app/services/datasourceSrv.js
View file @
551b802d
...
...
@@ -24,6 +24,7 @@ function (angular, _, config) {
if
(
!
this
.
default
)
{
this
.
default
=
datasources
[
_
.
keys
(
datasources
)[
0
]];
this
.
default
.
default
=
true
;
}
};
...
...
@@ -51,7 +52,7 @@ function (angular, _, config) {
if
(
value
.
supportAnnotations
)
{
results
.
push
({
name
:
key
,
editorSrc
:
value
.
annotationEditorSrc
editorSrc
:
value
.
annotationEditorSrc
,
});
}
});
...
...
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