Dashboard: Making a dashboard editable does not allow resizing of panels (#59255)

* DashboardGrid should rerender ReactGridLayout when mutable dashboard updates

* add missing prop to test
This commit is contained in:
Polina Boneva
2022-12-07 12:46:10 +02:00
committed by GitHub
parent 6359dab040
commit db1e19fe86
3 changed files with 11 additions and 5 deletions

View File

@@ -392,7 +392,12 @@ export class UnthemedDashboardPage extends PureComponent<Props, State> {
</section>
)}
<DashboardGrid dashboard={dashboard} viewPanel={viewPanel} editPanel={editPanel} />
<DashboardGrid
dashboard={dashboard}
isEditable={!!dashboard.meta.canEdit}
viewPanel={viewPanel}
editPanel={editPanel}
/>
{inspectPanel && <PanelInspector dashboard={dashboard} panel={inspectPanel} />}
</Page>