From 4311a20c5f36e0e946825440c3913b94bf4fbedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 9 Sep 2014 11:35:29 +0200 Subject: [PATCH] Fixed issue with editing text panel, removed a function from dashboard controller that I though was not used, turned out it was --- src/app/controllers/dashboardCtrl.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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;