[pve-devel] [PATCH pve-manager 1/5] use 'refresh' event to redisplay the grid after loading the store

Emmanuel Kasper e.kasper at proxmox.com
Tue Mar 15 14:12:54 CET 2016


'datachanged' event is not actualizing the component with ExtJS6,
but 'refresh' does.
---
 www/manager6/lxc/Snapshot.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/lxc/Snapshot.js b/www/manager6/lxc/Snapshot.js
index 7b2e33a..bded7cd 100644
--- a/www/manager6/lxc/Snapshot.js
+++ b/www/manager6/lxc/Snapshot.js
@@ -188,7 +188,7 @@ Ext.define('PVE.window.LxcSnapshot', {
 		summarystore.add(kvarray);
 		summarystore.sort();
 		summarystore.resumeEvents();
-		summarystore.fireEvent('datachanged', summarystore);
+		summarystore.fireEvent('refresh', summarystore);
 
 		form.findField('snaptime').setValue(new Date(data.snaptime));
 		form.findField('description').setValue(data.description);
-- 
2.1.4





More information about the pve-devel mailing list