Bug in when using % sign in legends (aliases), fixed by removing url decoding of metric names (Fixes #506)

This commit is contained in:
Torkel Ödegaard 2014-06-21 17:27:57 +02:00
parent bef61cf019
commit 012ffcf6f6
4 changed files with 3 additions and 8 deletions

View File

@ -6,6 +6,7 @@ vNext
**Fixes**
- Fixes regex InfluxDB queries intoduced in 1.6.0 (PR #500)
- Bug in when using % sign in legends (aliases), fixed by removing url decoding of metric names (Fixes #506)
# 1.6.0 (2014-06-16)

View File

@ -114,10 +114,4 @@ define(['angular', 'jquery', 'underscore', 'moment'], function (angular, $, _, m
};
});
module.filter('urlDecode', function() {
return function(input) {
return decodeURIComponent(input);
};
});
});

View File

@ -17,7 +17,7 @@
</a>
<ul class="dropdown-menu">
<li ng-repeat="option in filter.options">
<a ng-click="filterOptionSelected(filter, option)">{{option.text | urlDecode}}</a>
<a ng-click="filterOptionSelected(filter, option)">{{option.text}}</a>
</li>
</ul>
</li>

View File

@ -9,7 +9,7 @@
</i>
<span class='small histogram-legend-item'>
<a ng-click="toggleSeries(series, $event)" data-unique="1" data-placement="{{series.yaxis === 2 ? 'bottomRight' : 'bottomLeft'}}">
{{series.alias | urlDecode}}
{{series.alias}}
</a>
<span ng-if="panel.legend.values">
<span ng-show="panel.legend.current">