mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
fix: dont setViewMode when nothing has changed
This commit is contained in:
parent
4822c02534
commit
96104e4372
@ -126,8 +126,7 @@ export class DashboardViewState {
|
|||||||
|
|
||||||
if (!panel.fullscreen) {
|
if (!panel.fullscreen) {
|
||||||
this.enterFullscreen(panel);
|
this.enterFullscreen(panel);
|
||||||
} else {
|
} else if (this.dashboard.meta.isEditing !== this.state.edit) {
|
||||||
// already in fullscreen view just update the view mode
|
|
||||||
this.dashboard.setViewMode(panel, this.state.fullscreen, this.state.edit);
|
this.dashboard.setViewMode(panel, this.state.fullscreen, this.state.edit);
|
||||||
}
|
}
|
||||||
} else if (this.fullscreenPanel) {
|
} else if (this.fullscreenPanel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user