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
e2c958eb
Commit
e2c958eb
authored
Feb 01, 2019
by
Jon Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Legend toggle should only trigger a re-render, not a refresh
parent
cab6a872
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
public/app/core/services/keybindingSrv.ts
+1
-1
public/app/plugins/panel/graph/module.ts
+1
-1
public/app/plugins/panel/graph/tab_legend.html
+1
-1
No files found.
public/app/core/services/keybindingSrv.ts
View file @
e2c958eb
...
@@ -249,7 +249,7 @@ export class KeybindingSrv {
...
@@ -249,7 +249,7 @@ export class KeybindingSrv {
if
(
panelInfo
.
panel
.
legend
)
{
if
(
panelInfo
.
panel
.
legend
)
{
const
panelRef
=
dashboard
.
getPanelById
(
dashboard
.
meta
.
focusPanelId
);
const
panelRef
=
dashboard
.
getPanelById
(
dashboard
.
meta
.
focusPanelId
);
panelRef
.
legend
.
show
=
!
panelRef
.
legend
.
show
;
panelRef
.
legend
.
show
=
!
panelRef
.
legend
.
show
;
panelRef
.
re
fresh
();
panelRef
.
re
nder
();
}
}
}
}
});
});
...
...
public/app/plugins/panel/graph/module.ts
View file @
e2c958eb
...
@@ -281,7 +281,7 @@ class GraphCtrl extends MetricsPanelCtrl {
...
@@ -281,7 +281,7 @@ class GraphCtrl extends MetricsPanelCtrl {
toggleLegend
()
{
toggleLegend
()
{
this
.
panel
.
legend
.
show
=
!
this
.
panel
.
legend
.
show
;
this
.
panel
.
legend
.
show
=
!
this
.
panel
.
legend
.
show
;
this
.
re
fresh
();
this
.
re
nder
();
}
}
legendValuesOptionChanged
()
{
legendValuesOptionChanged
()
{
...
...
public/app/plugins/panel/graph/tab_legend.html
View file @
e2c958eb
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<h5
class=
"section-heading"
>
Options
</h5>
<h5
class=
"section-heading"
>
Options
</h5>
<gf-form-switch
class=
"gf-form"
<gf-form-switch
class=
"gf-form"
label=
"Show"
label-class=
"width-7"
label=
"Show"
label-class=
"width-7"
checked=
"ctrl.panel.legend.show"
on-change=
"ctrl.re
fresh
()"
>
checked=
"ctrl.panel.legend.show"
on-change=
"ctrl.re
nder
()"
>
</gf-form-switch>
</gf-form-switch>
<gf-form-switch
class=
"gf-form"
<gf-form-switch
class=
"gf-form"
label=
"As Table"
label-class=
"width-7"
label=
"As Table"
label-class=
"width-7"
...
...
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