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
ea92ddcc
Commit
ea92ddcc
authored
Apr 14, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create annotations progress
parent
ff426ae9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
8 deletions
+13
-8
public/app/core/services/popover_srv.ts
+1
-1
public/app/features/annotations/annotations_srv.ts
+6
-1
public/app/features/annotations/editor_ctrl.ts
+3
-3
public/app/features/annotations/partials/editor.html
+1
-1
public/app/features/annotations/partials/event_editor.html
+1
-1
public/app/partials/dashboard.html
+1
-1
No files found.
public/app/core/services/popover_srv.ts
View file @
ea92ddcc
...
@@ -69,7 +69,7 @@ function popoverSrv($compile, $rootScope, $timeout) {
...
@@ -69,7 +69,7 @@ function popoverSrv($compile, $rootScope, $timeout) {
openDrop
=
drop
;
openDrop
=
drop
;
openDrop
.
open
();
openDrop
.
open
();
},
10
);
},
10
0
);
};
};
}
}
...
...
public/app/features/annotations/annotations_srv.ts
View file @
ea92ddcc
...
@@ -38,7 +38,12 @@ export class AnnotationsSrv {
...
@@ -38,7 +38,12 @@ export class AnnotationsSrv {
// filter out annotations that do not belong to requesting panel
// filter out annotations that do not belong to requesting panel
annotations
=
_
.
filter
(
annotations
,
item
=>
{
annotations
=
_
.
filter
(
annotations
,
item
=>
{
if
(
item
.
panelId
&&
options
.
panel
.
id
!==
item
.
panelId
)
{
console
.
log
(
item
);
// shownIn === 1 requires annotation matching panel id
if
(
item
.
source
.
showIn
===
1
)
{
if
(
item
.
panelId
&&
options
.
panel
.
id
===
item
.
panelId
)
{
return
true
;
}
return
false
;
return
false
;
}
}
return
true
;
return
true
;
...
...
public/app/features/annotations/editor_ctrl.ts
View file @
ea92ddcc
...
@@ -18,13 +18,13 @@ export class AnnotationsEditorCtrl {
...
@@ -18,13 +18,13 @@ export class AnnotationsEditorCtrl {
datasource
:
null
,
datasource
:
null
,
iconColor
:
'rgba(255, 96, 96, 1)'
,
iconColor
:
'rgba(255, 96, 96, 1)'
,
enable
:
true
,
enable
:
true
,
show
:
0
,
show
In
:
0
,
hide
:
false
,
hide
:
false
,
};
};
showOptions
:
any
=
[
showOptions
:
any
=
[
{
text
:
'All Panels'
,
value
:
0
},
{
text
:
'All Panels'
,
value
:
0
},
{
text
:
'Specifc Panels'
,
value
:
1
},
{
text
:
'Specif
i
c Panels'
,
value
:
1
},
];
];
/** @ngInject */
/** @ngInject */
...
@@ -51,7 +51,7 @@ export class AnnotationsEditorCtrl {
...
@@ -51,7 +51,7 @@ export class AnnotationsEditorCtrl {
edit
(
annotation
)
{
edit
(
annotation
)
{
this
.
currentAnnotation
=
annotation
;
this
.
currentAnnotation
=
annotation
;
this
.
currentAnnotation
.
show
=
this
.
currentAnnotation
.
show
||
0
;
this
.
currentAnnotation
.
show
In
=
this
.
currentAnnotation
.
showIn
||
0
;
this
.
currentIsNew
=
false
;
this
.
currentIsNew
=
false
;
this
.
datasourceChanged
();
this
.
datasourceChanged
();
this
.
mode
=
'edit'
;
this
.
mode
=
'edit'
;
...
...
public/app/features/annotations/partials/editor.html
View file @
ea92ddcc
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-7"
>
Show in
</span>
<span
class=
"gf-form-label width-7"
>
Show in
</span>
<div
class=
"gf-form-select-wrapper width-12"
>
<div
class=
"gf-form-select-wrapper width-12"
>
<select
class=
"gf-form-input"
ng-model=
"ctrl.currentAnnotation.show"
ng-options=
"f.value as f.text for f in ctrl.showOptions"
></select>
<select
class=
"gf-form-input"
ng-model=
"ctrl.currentAnnotation.show
In
"
ng-options=
"f.value as f.text for f in ctrl.showOptions"
></select>
</div>
</div>
</div>
</div>
<gf-form-switch
class=
"gf-form"
<gf-form-switch
class=
"gf-form"
...
...
public/app/features/annotations/partials/event_editor.html
View file @
ea92ddcc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<h5
class=
"section-heading text-center"
>
Add annotation
</h5>
<h5
class=
"section-heading text-center"
>
Add annotation
</h5>
<form
name=
"ctrl.form"
class=
"text-center"
>
<form
name=
"ctrl.form"
class=
"text-center"
>
<div
class=
"gf-form-group"
style=
"display: inline-block"
>
<div
style=
"display: inline-block"
>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-7"
>
Title
</span>
<span
class=
"gf-form-label width-7"
>
Title
</span>
<input
type=
"text"
ng-model=
"ctrl.annotation.title"
class=
"gf-form-input max-width-20"
required
>
<input
type=
"text"
ng-model=
"ctrl.annotation.title"
class=
"gf-form-input max-width-20"
required
>
...
...
public/app/partials/dashboard.html
View file @
ea92ddcc
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<dash-row
class=
"dash-row"
ng-repeat=
"row in dashboard.rows"
row=
"row"
dashboard=
"dashboard"
>
<dash-row
class=
"dash-row"
ng-repeat=
"row in dashboard.rows"
row=
"row"
dashboard=
"dashboard"
>
</dash-row>
</dash-row>
<div
ng-show=
'dashboard
Meta.canEdit
'
class=
"add-row-panel-hint"
>
<div
ng-show=
'dashboard
.meta.canEdit && !dashboard.meta.fullscreen
'
class=
"add-row-panel-hint"
>
<div
class=
"span12"
style=
"text-align:left;"
>
<div
class=
"span12"
style=
"text-align:left;"
>
<span
style=
"margin-left: 12px;"
ng-click=
"addRowDefault()"
class=
"pointer btn btn-inverse btn-small"
>
<span
style=
"margin-left: 12px;"
ng-click=
"addRowDefault()"
class=
"pointer btn btn-inverse btn-small"
>
<span><i
class=
"fa fa-plus"
></i>
ADD ROW
</span>
<span><i
class=
"fa fa-plus"
></i>
ADD ROW
</span>
...
...
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