Browse Source

fixed issue with filtersrv refactoring and removing filter parameter

Torkel Ödegaard 11 years ago
parent
commit
df796e32eb
2 changed files with 3 additions and 1 deletions
  1. 1 0
      CHANGELOG.md
  2. 2 1
      src/app/services/filterSrv.js

+ 1 - 0
CHANGELOG.md

@@ -1,6 +1,7 @@
 vNext
 - New Y-axis formater for metric values that represent seconds (Issue #427) - thx @jippi
 - Allow special characters in serie names (influxdb datasource), PR #390 - thx  @majst01
+- Refactoring of filterSrv (Issue #428), thx @Tetha
 
 # 1.5.4 (2014-05-13)
 ### New features and improvements

+ 2 - 1
src/app/services/filterSrv.js

@@ -93,7 +93,8 @@ define([
     },
 
     removeTemplateParameter: function(templateParameter) {
-      this.templateParameters = _.without( this.templateParameters, templateParameter );
+      this.templateParameters = _.without(this.templateParameters, templateParameter);
+      this.dashboard.services.filter.list = this.templateParameters;
     },
 
     init: function(dashboard) {