mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Panel: fix fullscreen/edit view and page refresh when panel is in collapsed/hidden row, Fixes #992
This commit is contained in:
parent
e5bb7f7c2d
commit
cdb4b3cc7d
@ -32,8 +32,16 @@ function (angular, _, $) {
|
||||
});
|
||||
|
||||
this.update(this.getQueryStringState(), true);
|
||||
this.expandRowForPanel();
|
||||
}
|
||||
|
||||
DashboardViewState.prototype.expandRowForPanel = function() {
|
||||
if (!this.state.panelId) { return; }
|
||||
|
||||
var panelInfo = this.$scope.dashboard.getPanelInfoById(this.state.panelId);
|
||||
panelInfo.row.collapse = false;
|
||||
};
|
||||
|
||||
DashboardViewState.prototype.needsSync = function(urlState) {
|
||||
return _.isEqual(this.state, urlState) === false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user