From 5d6998cf0b566f2d79d996b60f1660e6d856c8cc Mon Sep 17 00:00:00 2001 From: felixbarnsteiner Date: Fri, 9 May 2014 11:18:18 +0200 Subject: [PATCH] url decode metric names #327 --- src/app/directives/grafanaGraph.js | 2 +- src/app/filters/all.js | 6 ++++++ src/app/panels/filtering/module.html | 2 +- src/app/panels/graphite/legend.html | 2 +- src/app/partials/graphite/editor.html | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) mode change 100644 => 100755 src/app/directives/grafanaGraph.js mode change 100644 => 100755 src/app/filters/all.js mode change 100644 => 100755 src/app/panels/filtering/module.html mode change 100644 => 100755 src/app/panels/graphite/legend.html mode change 100644 => 100755 src/app/partials/graphite/editor.html diff --git a/src/app/directives/grafanaGraph.js b/src/app/directives/grafanaGraph.js old mode 100644 new mode 100755 index d5a44598ad0..7a47983bd60 --- a/src/app/directives/grafanaGraph.js +++ b/src/app/directives/grafanaGraph.js @@ -313,7 +313,7 @@ function (angular, $, kbn, moment, _) { if (seriesInfo.alias) { group = '' + '' + ' ' + - (seriesInfo.alias || seriesInfo.query)+ + (decodeURIComponent(seriesInfo.alias) || seriesInfo.query)+ '
'; } else { group = kbn.query_color_dot(item.series.color, 15) + ' '; diff --git a/src/app/filters/all.js b/src/app/filters/all.js old mode 100644 new mode 100755 index e4ffe7088c8..9a717cc53a8 --- a/src/app/filters/all.js +++ b/src/app/filters/all.js @@ -114,4 +114,10 @@ define(['angular', 'jquery', 'underscore', 'moment'], function (angular, $, _, m }; }); + module.filter('urlDecode', function() { + return function(input) { + return decodeURIComponent(input); + }; + }); + }); \ No newline at end of file diff --git a/src/app/panels/filtering/module.html b/src/app/panels/filtering/module.html old mode 100644 new mode 100755 index a360161aa83..6f8dd5d79fb --- a/src/app/panels/filtering/module.html +++ b/src/app/panels/filtering/module.html @@ -17,7 +17,7 @@ diff --git a/src/app/panels/graphite/legend.html b/src/app/panels/graphite/legend.html old mode 100644 new mode 100755 index 84aab5020f6..013b50a5c95 --- a/src/app/panels/graphite/legend.html +++ b/src/app/panels/graphite/legend.html @@ -9,7 +9,7 @@ - {{series.alias}} + {{series.alias | urlDecode }} diff --git a/src/app/partials/graphite/editor.html b/src/app/partials/graphite/editor.html old mode 100644 new mode 100755 index 48179eccacf..3503680b424 --- a/src/app/partials/graphite/editor.html +++ b/src/app/partials/graphite/editor.html @@ -70,7 +70,7 @@