فهرست منبع

Fixed issue with editing text panel, removed a function from dashboard controller that I though was not used, turned out it was

Torkel Ödegaard 11 سال پیش
والد
کامیت
4311a20c5f
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      src/app/controllers/dashboardCtrl.js

+ 8 - 0
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) {
     $scope.showJsonEditor = function(evt, options) {
       var editScope = $rootScope.$new();
       var editScope = $rootScope.$new();
       editScope.object = options.object;
       editScope.object = options.object;