mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Warnings in dash.js
This commit is contained in:
parent
03095dfa74
commit
63c75f714f
@ -61,13 +61,12 @@ function (angular, $, config, _) {
|
|||||||
console.log( "dash controller -> init -> current dashboard", dashboard.current );
|
console.log( "dash controller -> init -> current dashboard", dashboard.current );
|
||||||
$scope.filter.init( dashboard.current );
|
$scope.filter.init( dashboard.current );
|
||||||
|
|
||||||
$scope.$watch('dashboard.current', function(newValue, oldValue) {
|
$scope.$watch('dashboard.current', function(newValue) {
|
||||||
$scope.filter.init( newValue );
|
$scope.filter.init( newValue );
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log( "Scope I watch on", $scope );
|
console.log( "Scope I watch on", $scope );
|
||||||
$scope.$watch('filter.time', function(newValue, oldValue) {
|
$scope.$watch('filter.time', function() {
|
||||||
console.log( "Hai" );
|
|
||||||
$scope.dashboard.refresh();
|
$scope.dashboard.refresh();
|
||||||
}, true);
|
}, true);
|
||||||
// Clear existing alerts
|
// Clear existing alerts
|
||||||
@ -80,7 +79,7 @@ function (angular, $, config, _) {
|
|||||||
$scope.bindKeyboardShortcuts();
|
$scope.bindKeyboardShortcuts();
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.bindKeyboardShortcuts = dashboardKeybindings.shortcuts
|
$scope.bindKeyboardShortcuts = dashboardKeybindings.shortcuts;
|
||||||
|
|
||||||
$scope.isPanel = function(obj) {
|
$scope.isPanel = function(obj) {
|
||||||
if(!_.isNull(obj) && !_.isUndefined(obj) && !_.isUndefined(obj.type)) {
|
if(!_.isNull(obj) && !_.isUndefined(obj) && !_.isUndefined(obj.type)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user