Merge pull request #12260 from strohi/panelids-for-htmlbookmark

added id tag to Panels for html bookmarking on longer Dashboards
pull/11474/merge
Carl Bergquist 7 years ago committed by GitHub
commit 7e0637aa9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      public/app/features/dashboard/dashgrid/DashboardGrid.tsx

@ -177,7 +177,8 @@ export class DashboardGrid extends React.Component<DashboardGridProps, any> {
for (const panel of this.dashboard.panels) {
const panelClasses = classNames({ panel: true, 'panel--fullscreen': panel.fullscreen });
panelElements.push(
<div key={panel.id.toString()} className={panelClasses}>
/** panel-id is set for html bookmarks */
<div key={panel.id.toString()} className={panelClasses} id={`panel-${panel.id.toString()}`}>
<DashboardPanel panel={panel} getPanelContainer={this.props.getPanelContainer} />
</div>
);

Loading…
Cancel
Save