Jelajahi Sumber

Merge pull request #30 from johanwiren/fix_graphite_import

Fixed graphite import to include all graphs in a dashboard.
Torkel Ödegaard 12 tahun lalu
induk
melakukan
5688f792cb
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      src/app/controllers/graphiteImport.js

+ 1 - 0
src/app/controllers/graphiteImport.js

@@ -65,6 +65,7 @@ function (angular, app, _) {
       _.each(state.graphs, function(graph) {
       _.each(state.graphs, function(graph) {
         if (currentRow.panels.length === graphsPerRow) {
         if (currentRow.panels.length === graphsPerRow) {
           currentRow = angular.copy(rowTemplate);
           currentRow = angular.copy(rowTemplate);
+          newDashboard.rows.push(currentRow);
         }
         }
 
 
         panel = {
         panel = {