From 86323a97198765ceb2e6cc410a03bfe9d9604712 Mon Sep 17 00:00:00 2001 From: Nathanael Jourdane <nathanael.jourdane@irap.omp.eu> Date: Wed, 2 Aug 2017 11:19:46 +0200 Subject: [PATCH] Clear granules grid when the window reloads. --- js/app/controllers/EpnTapModule.js | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/js/app/controllers/EpnTapModule.js b/js/app/controllers/EpnTapModule.js index b6463a1..04c983f 100644 --- a/js/app/controllers/EpnTapModule.js +++ b/js/app/controllers/EpnTapModule.js @@ -98,6 +98,7 @@ Ext.define('amdaDesktop.EpnTapModule', { - `target`: an array of 3 values: [dataproduct_type, target_class, target_name]; or null. */ initWindow: function(target) { + Ext.getCmp('epnTapGranulesGrid').getStore().removeAll(); Ext.data.StoreManager.lookup('servicesStore').on('add', function() { this.updateNbResults(); }, this); Ext.data.StoreManager.lookup('servicesStore').load(); Ext.data.StoreManager.lookup('metadataStore').load(); -- libgit2 0.21.2