[pve-devel] [PATCH 3/5] ext5migrate: use 'refresh' event to reload components using DiffStore

Emmanuel Kasper e.kasper at proxmox.com
Mon Jun 15 15:31:11 CEST 2015


'datachanged' event was not reloading the store with ExtJS5,
but 'refresh' does.
According to the API description 'refresh' seems to be what we need:
http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext.data.AbstractStore-event-refresh
---
 www/manager5/data/DiffStore.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager5/data/DiffStore.js b/www/manager5/data/DiffStore.js
index 62410c2..b118c59 100644
--- a/www/manager5/data/DiffStore.js
+++ b/www/manager5/data/DiffStore.js
@@ -78,7 +78,7 @@ Ext.define('PVE.data.DiffStore', {
 	    first_load = false;
 
 	    me.resumeEvents();
-	    me.fireEvent('datachanged', me);
+	    me.fireEvent('refresh', me);
 	});
     }
 });
-- 
2.1.4





More information about the pve-devel mailing list