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
574baa71
Unverified
Commit
574baa71
authored
May 16, 2018
by
Daniel Lee
Committed by
GitHub
May 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11719 from mtanda/annotation_on_non_editable_dashboard
create annotation on non-editable dashboard
parents
3305ac1f
87c9c475
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
public/app/plugins/panel/graph/graph.ts
+2
-2
No files found.
public/app/plugins/panel/graph/graph.ts
View file @
574baa71
...
...
@@ -674,7 +674,7 @@ function graphDirective(timeSrv, popoverSrv, contextSrv) {
return
;
}
if
((
ranges
.
ctrlKey
||
ranges
.
metaKey
)
&&
dashboard
.
meta
.
canEdit
)
{
if
((
ranges
.
ctrlKey
||
ranges
.
metaKey
)
&&
(
dashboard
.
meta
.
canEdit
||
dashboard
.
meta
.
canMakeEditable
)
)
{
// Add annotation
setTimeout
(()
=>
{
eventManager
.
updateTime
(
ranges
.
xaxis
);
...
...
@@ -695,7 +695,7 @@ function graphDirective(timeSrv, popoverSrv, contextSrv) {
return
;
}
if
((
pos
.
ctrlKey
||
pos
.
metaKey
)
&&
dashboard
.
meta
.
canEdit
)
{
if
((
pos
.
ctrlKey
||
pos
.
metaKey
)
&&
(
dashboard
.
meta
.
canEdit
||
dashboard
.
meta
.
canMakeEditable
)
)
{
// Skip if range selected (added in "plotselected" event handler)
let
isRangeSelection
=
pos
.
x
!==
pos
.
x1
;
if
(
!
isRangeSelection
)
{
...
...
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