Просмотр исходного кода

Fixed graphite import to include all graphs in a dashboard.

Johan Wirén 12 лет назад
Родитель
Сommit
3ffc04be4d
1 измененных файлов с 1 добавлено и 0 удалено
  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 = {