mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix for auto refresh not being started after loading dashboard, Fixes #655
This commit is contained in:
parent
378e55ed0c
commit
af073dad46
@ -1,3 +1,8 @@
|
|||||||
|
# 1.7.0 (unreleased)
|
||||||
|
|
||||||
|
**Fixes**
|
||||||
|
- [Issue #655](https://github.com/grafana/grafana/issues/655). General: Auto refresh not initiated / started after dashboard loading
|
||||||
|
|
||||||
# 1.7.0-rc1 (2014-08-05)
|
# 1.7.0-rc1 (2014-08-05)
|
||||||
|
|
||||||
**New features or improvements**
|
**New features or improvements**
|
||||||
|
@ -41,6 +41,11 @@ function (angular, $, config, _) {
|
|||||||
|
|
||||||
window.document.title = 'Grafana - ' + $scope.dashboard.title;
|
window.document.title = 'Grafana - ' + $scope.dashboard.title;
|
||||||
|
|
||||||
|
// start auto refresh
|
||||||
|
if($scope.dashboard.refresh) {
|
||||||
|
$scope.dashboard.set_interval($scope.dashboard.refresh);
|
||||||
|
}
|
||||||
|
|
||||||
dashboardKeybindings.shortcuts($scope);
|
dashboardKeybindings.shortcuts($scope);
|
||||||
|
|
||||||
$scope.emitAppEvent("dashboard-loaded", $scope.dashboard);
|
$scope.emitAppEvent("dashboard-loaded", $scope.dashboard);
|
||||||
|
@ -28,6 +28,7 @@ function (angular, $, kbn, _) {
|
|||||||
this.nav = data.nav || [];
|
this.nav = data.nav || [];
|
||||||
this.time = data.time || { from: 'now-6h', to: 'now' };
|
this.time = data.time || { from: 'now-6h', to: 'now' };
|
||||||
this.templating = data.templating || { list: [] };
|
this.templating = data.templating || { list: [] };
|
||||||
|
this.refresh = data.refresh;
|
||||||
|
|
||||||
if (this.nav.length === 0) {
|
if (this.nav.length === 0) {
|
||||||
this.nav.push({ type: 'timepicker' });
|
this.nav.push({ type: 'timepicker' });
|
||||||
|
Loading…
Reference in New Issue
Block a user