Quellcode durchsuchen

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

Torkel Ödegaard vor 11 Jahren
Ursprung
Commit
4311a20c5f
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  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) {
       var editScope = $rootScope.$new();
       editScope.object = options.object;