Skip to content

Commit

Permalink
disabled drag for mfe (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
GurinderRawala authored Aug 9, 2024
1 parent 9fb28df commit a664da5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions public/app/features/dashboard/dashgrid/DashboardGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ export class Component extends PureComponent<Props> {
this.gridWidth = gridWidth;
}

console.log('this.props.dashboard.panels', config.theme2.shape.radius.default);

for (const panel of this.props.dashboard.panels) {
const panelClasses = classNames({ 'react-grid-item--fullscreen': panel.isViewing });

Expand Down Expand Up @@ -255,8 +253,8 @@ export class Component extends PureComponent<Props> {
<div style={{ width: width, height: '100%' }} ref={this.onGetWrapperDivRef}>
<ReactGridLayout
width={width}
isDraggable={(isLg && isFnDashboard) || draggable}
isResizable={isLg && isFnDashboard ? true : isEditable}
isDraggable={isFnDashboard ? false : draggable}
isResizable={isFnDashboard ? false : isEditable}
containerPadding={[0, 0]}
useCSSTransforms={true}
margin={[GRID_CELL_VMARGIN, GRID_CELL_VMARGIN]}
Expand Down

0 comments on commit a664da5

Please sign in to comment.