diff --git a/src/app/controllers/dashboardCtrl.js b/src/app/controllers/dashboardCtrl.js index f4d057e77e5..424f0e225e8 100644 --- a/src/app/controllers/dashboardCtrl.js +++ b/src/app/controllers/dashboardCtrl.js @@ -102,6 +102,14 @@ function (angular, $, config, _) { } }; + $scope.panel_path =function(type) { + if(type) { + return 'app/panels/'+type.replace(".","/"); + } else { + return false; + } + }; + $scope.showJsonEditor = function(evt, options) { var editScope = $rootScope.$new(); editScope.object = options.object;