mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DashboardViewState: small fix for bug that caused issue for singlestat panel
This commit is contained in:
parent
381b9ee7ee
commit
8bb51d47f8
@ -138,6 +138,8 @@ function (angular, app, _, $) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function render() {
|
function render() {
|
||||||
|
if (!scope.data) { return; }
|
||||||
|
|
||||||
data = scope.data;
|
data = scope.data;
|
||||||
panel = scope.panel;
|
panel = scope.panel;
|
||||||
|
|
||||||
|
@ -69,7 +69,8 @@ function (angular, _, $) {
|
|||||||
|
|
||||||
if (!this.state.fullscreen) {
|
if (!this.state.fullscreen) {
|
||||||
this.state.panelId = null;
|
this.state.panelId = null;
|
||||||
this.state.edit = false;
|
this.state.fullscreen = null;
|
||||||
|
this.state.edit = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!skipUrlSync) {
|
if (!skipUrlSync) {
|
||||||
|
@ -30,7 +30,7 @@ define([
|
|||||||
viewState.update({fullscreen: false});
|
viewState.update({fullscreen: false});
|
||||||
expect(location.search()).to.eql({});
|
expect(location.search()).to.eql({});
|
||||||
expect(viewState.fullscreen).to.be(false);
|
expect(viewState.fullscreen).to.be(false);
|
||||||
expect(viewState.state.fullscreen).to.be(false);
|
expect(viewState.state.fullscreen).to.be(null);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user