diff --git a/src/app/controllers/dash.js b/src/app/controllers/dash.js index 1bb2bd72043..8a29a01355d 100644 --- a/src/app/controllers/dash.js +++ b/src/app/controllers/dash.js @@ -68,9 +68,18 @@ function (angular, config, _) { return { 'min-height': row.collapse ? '5px' : row.height }; }; - $scope.edit_path = function(type) { + $scope.panel_path =function(type) { if(type) { - return 'app/panels/'+type.replace(".","/")+'/editor.html'; + return 'app/panels/'+type.replace(".","/"); + } else { + return false; + } + }; + + $scope.edit_path = function(type) { + var p = $scope.panel_path(type); + if(p) { + return p+'/editor.html'; } else { return false; } diff --git a/src/app/partials/dasheditor.html b/src/app/partials/dasheditor.html index e66c3640b1a..07aed9e20a0 100644 --- a/src/app/partials/dasheditor.html +++ b/src/app/partials/dasheditor.html @@ -159,7 +159,7 @@