|
|
@@ -87,6 +87,7 @@ export class DashboardRow extends React.Component<DashboardRowProps, any> {
|
|
|
const title = templateSrv.replaceWithText(this.props.panel.title, this.props.panel.scopedVars);
|
|
|
const count = this.props.panel.panels ? this.props.panel.panels.length : 0;
|
|
|
const panels = count === 1 ? 'panel' : 'panels';
|
|
|
+ const editModeEnabled = this.dashboard.meta.canEdit === true;
|
|
|
|
|
|
return (
|
|
|
<div className={classes}>
|
|
|
@@ -112,7 +113,7 @@ export class DashboardRow extends React.Component<DashboardRowProps, any> {
|
|
|
|
|
|
</div>
|
|
|
)}
|
|
|
- <div className="dashboard-row__drag grid-drag-handle" />
|
|
|
+ {editModeEnabled && <div className="dashboard-row__drag grid-drag-handle" />}
|
|
|
</div>
|
|
|
);
|
|
|
}
|