fix(dashboard): re-render panels when leaving fullscreen mode, fixes #6312

This commit is contained in:
Torkel Ödegaard 2016-10-22 09:51:18 +02:00
parent 1581bf8d5b
commit 401c67d136

View File

@ -155,11 +155,10 @@ function (angular, _, $) {
if (!render) { return false;}
$timeout(function() {
if (self.oldTimeRange !== ctrl.range) {
if (self.oldTimeRange && self.oldTimeRange !== ctrl.range) {
self.$scope.broadcastRefresh();
}
else {
ctrl.render();
} else {
self.$scope.$broadcast('render');
}
delete self.fullscreenPanel;
});