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

fix(graphite): Fixed issue graphite png rendering option, fixes #4864

Torkel Ödegaard 9 лет назад
Родитель
Сommit
36c583dddf
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      CHANGELOG.md
  2. 1 1
      public/app/plugins/datasource/graphite/datasource.ts

+ 1 - 0
CHANGELOG.md

@@ -4,6 +4,7 @@
 * **Dashboard title**: Fixed max dashboard title width (media query) for large screens,  fixes [#4859](https://github.com/grafana/grafana/issues/4859)
 * **Annotations**: Fixed issue with entering annotation edit view, fixes [#4857](https://github.com/grafana/grafana/issues/4857)
 * **Remove query**: Fixed issue with removing query for data sources without collapsable query editors, fixes [#4856](https://github.com/grafana/grafana/issues/4856)
+* **Graphite PNG*: Fixed issue graphite png rendering option, fixes [#4864](https://github.com/grafana/grafana/issues/4864)
 
 # 3.0.0-beta6 (2016-04-29)
 

+ 1 - 1
public/app/plugins/datasource/graphite/datasource.ts

@@ -31,7 +31,7 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
     }
 
     if (options.format === 'png') {
-      return $q.when(this.url + '/render' + '?' + params.join('&'));
+      return $q.when({data: this.url + '/render' + '?' + params.join('&')});
     }
 
     var httpOptions: any = {method: this.render_method, url: '/render'};