Dashboard: Don't show unsaved changes modal for automatic schema changes (#50822)

* Dashboard: Don't show unsaved changes modal for automatic schema changes

* More refinements

* Fix logic in updateGridPos
This commit is contained in:
Torkel Ödegaard
2022-06-17 08:58:53 +02:00
committed by GitHub
parent eb25d8df89
commit 7e22b8e6fb
8 changed files with 58 additions and 24 deletions

View File

@@ -50,8 +50,8 @@ export class DashboardRow extends React.Component<DashboardRowProps, any> {
};
onUpdate = (title: string, repeat?: string | null) => {
this.props.panel['title'] = title;
this.props.panel['repeat'] = repeat ?? undefined;
this.props.panel.setProperty('title', title);
this.props.panel.setProperty('repeat', repeat ?? undefined);
this.props.panel.render();
this.props.dashboard.processRepeats();
this.forceUpdate();