DashboardViewState: small fix for bug that caused issue for singlestat panel

This commit is contained in:
Torkel Ödegaard 2014-11-11 08:07:05 +01:00
parent 381b9ee7ee
commit 8bb51d47f8
3 changed files with 5 additions and 2 deletions

View File

@ -138,6 +138,8 @@ function (angular, app, _, $) {
}
function render() {
if (!scope.data) { return; }
data = scope.data;
panel = scope.panel;

View File

@ -69,7 +69,8 @@ function (angular, _, $) {
if (!this.state.fullscreen) {
this.state.panelId = null;
this.state.edit = false;
this.state.fullscreen = null;
this.state.edit = null;
}
if (!skipUrlSync) {

View File

@ -30,7 +30,7 @@ define([
viewState.update({fullscreen: false});
expect(location.search()).to.eql({});
expect(viewState.fullscreen).to.be(false);
expect(viewState.state.fullscreen).to.be(false);
expect(viewState.state.fullscreen).to.be(null);
});
});