mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
added id tag to Panels for html bookmarking on longer Dashboards
This commit is contained in:
parent
dbaa45e51e
commit
23c97d080f
@ -177,7 +177,7 @@ export class DashboardGrid extends React.Component<DashboardGridProps, any> {
|
|||||||
for (let panel of this.dashboard.panels) {
|
for (let panel of this.dashboard.panels) {
|
||||||
const panelClasses = classNames({ panel: true, 'panel--fullscreen': panel.fullscreen });
|
const panelClasses = classNames({ panel: true, 'panel--fullscreen': panel.fullscreen });
|
||||||
panelElements.push(
|
panelElements.push(
|
||||||
<div key={panel.id.toString()} className={panelClasses}>
|
<div key={panel.id.toString()} className={panelClasses} id={`panel-${panel.id.toString()}`}>
|
||||||
<DashboardPanel panel={panel} getPanelContainer={this.props.getPanelContainer} />
|
<DashboardPanel panel={panel} getPanelContainer={this.props.getPanelContainer} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user