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
002f57ae
Commit
002f57ae
authored
Dec 23, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed dashboard links not updating after variable or time range change, fixes #14493
parent
41712c39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
public/app/features/dashboard/dashlinks/module.ts
+4
-1
public/app/features/dashboard/submenu/submenu.html
+1
-1
No files found.
public/app/features/dashboard/dashlinks/module.ts
View file @
002f57ae
...
@@ -6,6 +6,7 @@ function dashLinksContainer() {
...
@@ -6,6 +6,7 @@ function dashLinksContainer() {
return
{
return
{
scope
:
{
scope
:
{
links
:
'='
,
links
:
'='
,
dashboard
:
'='
,
},
},
restrict
:
'E'
,
restrict
:
'E'
,
controller
:
'DashLinksContainerCtrl'
,
controller
:
'DashLinksContainerCtrl'
,
...
@@ -20,6 +21,8 @@ function dashLink($compile, $sanitize, linkSrv) {
...
@@ -20,6 +21,8 @@ function dashLink($compile, $sanitize, linkSrv) {
restrict
:
'E'
,
restrict
:
'E'
,
link
:
(
scope
,
elem
)
=>
{
link
:
(
scope
,
elem
)
=>
{
const
link
=
scope
.
link
;
const
link
=
scope
.
link
;
const
dashboard
=
scope
.
dashboard
;
let
template
=
let
template
=
'<div class="gf-form">'
+
'<div class="gf-form">'
+
'<a class="pointer gf-form-label" data-placement="bottom"'
+
'<a class="pointer gf-form-label" data-placement="bottom"'
+
...
@@ -76,7 +79,7 @@ function dashLink($compile, $sanitize, linkSrv) {
...
@@ -76,7 +79,7 @@ function dashLink($compile, $sanitize, linkSrv) {
}
}
update
();
update
();
scope
.
$on
(
'refresh'
,
updat
e
);
dashboard
.
events
.
on
(
'refresh'
,
update
,
scop
e
);
},
},
};
};
}
}
...
...
public/app/features/dashboard/submenu/submenu.html
View file @
002f57ae
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</div>
</div>
<div
ng-if=
"ctrl.dashboard.links.length > 0"
>
<div
ng-if=
"ctrl.dashboard.links.length > 0"
>
<dash-links-container
links=
"ctrl.dashboard.links"
class=
"gf-form-inline"
></dash-links-container>
<dash-links-container
links=
"ctrl.dashboard.links"
dashboard=
"ctrl.dashboard"
class=
"gf-form-inline"
></dash-links-container>
</div>
</div>
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></div>
...
...
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