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
bb64a067
Unverified
Commit
bb64a067
authored
May 03, 2019
by
Ryan McKinley
Committed by
GitHub
May 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PanelModel: expose isInView property to PanelModel (#16877)
parent
2af69ccf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
public/app/features/dashboard/dashgrid/DashboardGrid.tsx
+2
-1
public/app/features/dashboard/state/PanelModel.ts
+2
-0
No files found.
public/app/features/dashboard/dashgrid/DashboardGrid.tsx
View file @
bb64a067
...
@@ -233,6 +233,7 @@ export class DashboardGrid extends PureComponent<Props> {
...
@@ -233,6 +233,7 @@ export class DashboardGrid extends PureComponent<Props> {
for
(
const
panel
of
this
.
props
.
dashboard
.
panels
)
{
for
(
const
panel
of
this
.
props
.
dashboard
.
panels
)
{
const
panelClasses
=
classNames
({
'react-grid-item--fullscreen'
:
panel
.
fullscreen
});
const
panelClasses
=
classNames
({
'react-grid-item--fullscreen'
:
panel
.
fullscreen
});
const
id
=
panel
.
id
.
toString
();
const
id
=
panel
.
id
.
toString
();
panel
.
isInView
=
this
.
isInView
(
panel
);
panelElements
.
push
(
panelElements
.
push
(
<
div
<
div
key=
{
id
}
key=
{
id
}
...
@@ -247,7 +248,7 @@ export class DashboardGrid extends PureComponent<Props> {
...
@@ -247,7 +248,7 @@ export class DashboardGrid extends PureComponent<Props> {
dashboard=
{
this
.
props
.
dashboard
}
dashboard=
{
this
.
props
.
dashboard
}
isEditing=
{
panel
.
isEditing
}
isEditing=
{
panel
.
isEditing
}
isFullscreen=
{
panel
.
fullscreen
}
isFullscreen=
{
panel
.
fullscreen
}
isInView=
{
this
.
isInView
(
panel
)
}
isInView=
{
panel
.
isInView
}
/>
/>
</
div
>
</
div
>
);
);
...
...
public/app/features/dashboard/state/PanelModel.ts
View file @
bb64a067
...
@@ -23,6 +23,7 @@ const notPersistedProperties: { [str: string]: boolean } = {
...
@@ -23,6 +23,7 @@ const notPersistedProperties: { [str: string]: boolean } = {
events
:
true
,
events
:
true
,
fullscreen
:
true
,
fullscreen
:
true
,
isEditing
:
true
,
isEditing
:
true
,
isInView
:
true
,
hasRefreshed
:
true
,
hasRefreshed
:
true
,
cachedPluginOptions
:
true
,
cachedPluginOptions
:
true
,
plugin
:
true
,
plugin
:
true
,
...
@@ -111,6 +112,7 @@ export class PanelModel {
...
@@ -111,6 +112,7 @@ export class PanelModel {
// non persisted
// non persisted
fullscreen
:
boolean
;
fullscreen
:
boolean
;
isEditing
:
boolean
;
isEditing
:
boolean
;
isInView
:
boolean
;
hasRefreshed
:
boolean
;
hasRefreshed
:
boolean
;
events
:
Emitter
;
events
:
Emitter
;
cacheTimeout
?:
any
;
cacheTimeout
?:
any
;
...
...
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