Make host layouts not draggable or resizable

pull/908/head
Andrew Watkins 2017-02-23 13:09:04 -06:00
parent 653bba24bb
commit 3fe737dd47
1 changed files with 5 additions and 1 deletions

View File

@ -134,7 +134,9 @@ export const LayoutRenderer = React.createClass({
},
render() {
const layoutMargin = 4;
const layoutMargin = 4
const isDashboard = !!this.props.onPositionChange
return (
<GridLayout
layout={this.props.cells}
@ -146,6 +148,8 @@ export const LayoutRenderer = React.createClass({
onResize={this.triggerWindowResize}
onLayoutChange={this.handleLayoutChange}
draggableHandle={'.hosts-graph-heading'}
isDraggable={isDashboard}
isResizable={isDashboard}
>
{this.generateVisualizations()}
</GridLayout>