瀏覽代碼

Merge pull request #26 from johanwiren/add_title_on_import

Sets graph title when importing from graphite
Torkel Ödegaard 12 年之前
父節點
當前提交
76b535a2e4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/app/controllers/graphiteImport.js

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

@@ -70,6 +70,7 @@ function (angular, app, _) {
         panel = {
           type: 'graphite',
           span: 12 / graphsPerRow,
+          title: graph[1].title,
           targets: []
         };
 
@@ -87,4 +88,4 @@ function (angular, app, _) {
 
   });
 
-});
+});