Commit 272186a06636a9dccb03c199914aa8c45950f938

Authored by Nathanael Jourdane
1 parent b37c65e6

Reset granules grid when the user update the filter

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
js/app/controllers/EpnTapModule.js
... ... @@ -166,6 +166,7 @@ Ext.define('amdaDesktop.EpnTapModule', {
166 166 Among other things, updates the `targetClassCB` combobox and the `servicesGrid` table.
167 167 */
168 168 onProductTypeCBChanged: function() {
  169 + Ext.getCmp('epnTapGranulesGrid').getStore().removeAll();
169 170 this.targetClassCB.getStore().removeAll();
170 171 this.targetNameCB.getStore().removeAll();
171 172 this.targetNameCB.disable();
... ... @@ -201,6 +202,7 @@ Ext.define('amdaDesktop.EpnTapModule', {
201 202 Among other things, updates the `targetNameCB` combobox and the `servicesGrid` table.
202 203 */
203 204 onTargetClassCBChanged: function() {
  205 + Ext.getCmp('epnTapGranulesGrid').getStore().removeAll();
204 206 this.targetNameCB.getStore().removeAll();
205 207  
206 208 if (this.targetClassCB.value == 'all') {
... ... @@ -232,6 +234,7 @@ Ext.define('amdaDesktop.EpnTapModule', {
232 234 Updates the `servicesGrid` table.
233 235 */
234 236 onTargetNameCBChanged: function() {
  237 + Ext.getCmp('epnTapGranulesGrid').getStore().removeAll();
235 238 this.updateNbResults();
236 239 },
237 240  
... ...