Panel: Pass transparency prop down to React panels. (#17235)

This commit is contained in:
Filip Barl 2019-05-23 11:58:51 +02:00 committed by Torkel Ödegaard
parent 972df40af8
commit a04bf0cded
2 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ export interface PanelProps<T = any> {
options: T;
onOptionsChange: (options: T) => void;
renderCounter: number;
transparent: boolean;
width: number;
height: number;
replaceVariables: InterpolateFunction;

View File

@ -254,6 +254,7 @@ export class PanelChrome extends PureComponent<Props, State> {
data={data}
timeRange={data.request ? data.request.range : this.timeSrv.timeRange()}
options={panel.getOptions()}
transparent={panel.transparent}
width={width - theme.panelPadding * 2}
height={innerPanelHeight}
renderCounter={renderCounter}