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
81295816
Commit
81295816
authored
May 31, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert: removed lazy loading feature, closes #8500
parent
e4cb1039
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
23 deletions
+0
-23
public/app/features/panel/panel_ctrl.ts
+0
-9
public/app/features/panel/panel_directive.ts
+0
-14
No files found.
public/app/features/panel/panel_ctrl.ts
View file @
81295816
...
...
@@ -35,8 +35,6 @@ export class PanelCtrl {
containerHeight
:
any
;
events
:
Emitter
;
timing
:
any
;
skippedLastRefresh
:
boolean
;
isPanelVisible
:
any
;
constructor
(
$scope
,
$injector
)
{
this
.
$injector
=
$injector
;
...
...
@@ -77,13 +75,6 @@ export class PanelCtrl {
}
refresh
()
{
if
(
!
this
.
isPanelVisible
()
&&
!
this
.
dashboard
.
meta
.
soloMode
&&
!
this
.
dashboard
.
snapshot
)
{
this
.
skippedLastRefresh
=
true
;
return
;
}
this
.
skippedLastRefresh
=
false
;
this
.
events
.
emit
(
'refresh'
,
null
);
}
...
...
public/app/features/panel/panel_directive.ts
View file @
81295816
...
...
@@ -185,23 +185,9 @@ module.directive('grafanaPanel', function($rootScope, $document) {
elem
.
on
(
'mouseenter'
,
mouseEnter
);
elem
.
on
(
'mouseleave'
,
mouseLeave
);
ctrl
.
isPanelVisible
=
function
()
{
var
position
=
panelContainer
[
0
].
getBoundingClientRect
();
return
(
0
<
position
.
top
)
&&
(
position
.
top
<
window
.
innerHeight
);
};
const
refreshOnScroll
=
function
()
{
if
(
ctrl
.
skippedLastRefresh
)
{
ctrl
.
refresh
();
}
};
$document
.
on
(
'scroll'
,
refreshOnScroll
);
scope
.
$on
(
'$destroy'
,
function
()
{
elem
.
off
();
cornerInfoElem
.
off
();
$document
.
off
(
'scroll'
,
refreshOnScroll
);
if
(
infoDrop
)
{
infoDrop
.
destroy
();
...
...
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