|
|
|
|
@ -26,7 +26,7 @@ const mapDispatchToProps = { |
|
|
|
|
|
|
|
|
|
const connector = connect(mapStateToProps, mapDispatchToProps); |
|
|
|
|
|
|
|
|
|
export type Props = GrafanaRouteComponentProps<DashboardPageRouteParams, { panelId: string }> & |
|
|
|
|
export type Props = GrafanaRouteComponentProps<DashboardPageRouteParams, { panelId: string; timezone?: string }> & |
|
|
|
|
ConnectedProps<typeof connector>; |
|
|
|
|
|
|
|
|
|
export interface State { |
|
|
|
|
@ -87,6 +87,7 @@ export class SoloPanelPage extends Component<Props, State> { |
|
|
|
|
notFound={this.state.notFound} |
|
|
|
|
panel={this.state.panel} |
|
|
|
|
panelId={this.getPanelId()} |
|
|
|
|
timezone={this.props.queryParams.timezone} |
|
|
|
|
/> |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
@ -95,9 +96,10 @@ export class SoloPanelPage extends Component<Props, State> { |
|
|
|
|
export interface SoloPanelProps extends State { |
|
|
|
|
dashboard: DashboardModel | null; |
|
|
|
|
panelId: number; |
|
|
|
|
timezone?: string; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const SoloPanel = ({ dashboard, notFound, panel, panelId }: SoloPanelProps) => { |
|
|
|
|
export const SoloPanel = ({ dashboard, notFound, panel, panelId, timezone }: SoloPanelProps) => { |
|
|
|
|
if (notFound) { |
|
|
|
|
return <div className="alert alert-error">Panel with id {panelId} not found</div>; |
|
|
|
|
} |
|
|
|
|
@ -123,6 +125,7 @@ export const SoloPanel = ({ dashboard, notFound, panel, panelId }: SoloPanelProp |
|
|
|
|
isEditing={false} |
|
|
|
|
isViewing={false} |
|
|
|
|
lazy={false} |
|
|
|
|
timezone={timezone} |
|
|
|
|
/> |
|
|
|
|
); |
|
|
|
|
}} |
|
|
|
|
|