Panel: fix fullscreen/edit view and page refresh when panel is in collapsed/hidden row, Fixes #992

This commit is contained in:
Torkel Ödegaard 2014-10-29 09:51:44 +01:00
parent e5bb7f7c2d
commit cdb4b3cc7d

View File

@ -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;
};