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
d62cd8a5
Commit
d62cd8a5
authored
Dec 06, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix transparent option #14333
parent
a516ff81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
public/app/features/dashboard/dashgrid/PanelChrome.tsx
+3
-2
public/app/features/dashboard/panel_model.ts
+3
-0
No files found.
public/app/features/dashboard/dashgrid/PanelChrome.tsx
View file @
d62cd8a5
...
@@ -83,8 +83,9 @@ export class PanelChrome extends PureComponent<Props, State> {
...
@@ -83,8 +83,9 @@ export class PanelChrome extends PureComponent<Props, State> {
const
{
panel
,
dashboard
,
plugin
}
=
this
.
props
;
const
{
panel
,
dashboard
,
plugin
}
=
this
.
props
;
const
{
refreshCounter
,
timeRange
,
timeInfo
,
renderCounter
}
=
this
.
state
;
const
{
refreshCounter
,
timeRange
,
timeInfo
,
renderCounter
}
=
this
.
state
;
const
{
datasource
,
targets
}
=
panel
;
const
{
datasource
,
targets
,
transparent
}
=
panel
;
const
PanelComponent
=
plugin
.
exports
.
Panel
;
const
PanelComponent
=
plugin
.
exports
.
Panel
;
const
containerClassNames
=
`panel-container panel-container--absolute
${
transparent
?
'panel-transparent'
:
''
}
`
;
return
(
return
(
<
AutoSizer
>
<
AutoSizer
>
...
@@ -94,7 +95,7 @@ export class PanelChrome extends PureComponent<Props, State> {
...
@@ -94,7 +95,7 @@ export class PanelChrome extends PureComponent<Props, State> {
}
}
return
(
return
(
<
div
className=
"panel-container panel-container--absolute"
>
<
div
className=
{
containerClassNames
}
>
<
PanelHeader
<
PanelHeader
panel=
{
panel
}
panel=
{
panel
}
dashboard=
{
dashboard
}
dashboard=
{
dashboard
}
...
...
public/app/features/dashboard/panel_model.ts
View file @
d62cd8a5
...
@@ -53,6 +53,7 @@ const mustKeepProps: { [str: string]: boolean } = {
...
@@ -53,6 +53,7 @@ const mustKeepProps: { [str: string]: boolean } = {
cacheTimeout
:
true
,
cacheTimeout
:
true
,
nullPointMode
:
true
,
nullPointMode
:
true
,
cachedPluginOptions
:
true
,
cachedPluginOptions
:
true
,
transparent
:
true
,
};
};
const
defaults
:
any
=
{
const
defaults
:
any
=
{
...
@@ -60,6 +61,7 @@ const defaults: any = {
...
@@ -60,6 +61,7 @@ const defaults: any = {
datasource
:
null
,
datasource
:
null
,
targets
:
[{}],
targets
:
[{}],
cachedPluginOptions
:
{},
cachedPluginOptions
:
{},
transparent
:
false
,
};
};
export
class
PanelModel
{
export
class
PanelModel
{
...
@@ -91,6 +93,7 @@ export class PanelModel {
...
@@ -91,6 +93,7 @@ export class PanelModel {
interval
?:
string
;
interval
?:
string
;
description
?:
string
;
description
?:
string
;
links
?:
[];
links
?:
[];
transparent
:
boolean
;
// non persisted
// non persisted
fullscreen
:
boolean
;
fullscreen
:
boolean
;
...
...
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