[pve-devel] [PATCH pve-manager 3/3] ext6migrate: trigger working store reload when the component is rendered

Emmanuel Kasper e.kasper at proxmox.com
Tue Nov 17 16:34:19 CET 2015


This fixes the following problem:
After a manual browser refresh, widgets were displayed without data
---
 www/manager6/dc/ACLView.js        | 2 +-
 www/manager6/dc/AuthView.js       | 2 +-
 www/manager6/dc/Backup.js         | 2 +-
 www/manager6/dc/GroupView.js      | 2 +-
 www/manager6/dc/OptionView.js     | 3 +--
 www/manager6/dc/PoolView.js       | 2 +-
 www/manager6/dc/RoleView.js       | 2 +-
 www/manager6/dc/SecurityGroups.js | 2 +-
 www/manager6/dc/StorageView.js    | 2 +-
 www/manager6/dc/Summary.js        | 2 +-
 www/manager6/dc/Support.js        | 2 +-
 www/manager6/dc/UserView.js       | 2 +-
 www/manager6/grid/BackupView.js   | 2 +-
 www/manager6/grid/PoolMembers.js  | 2 +-
 www/manager6/panel/IPSet.js       | 2 +-
 15 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/www/manager6/dc/ACLView.js b/www/manager6/dc/ACLView.js
index 7ea314c..5e0d6fb 100644
--- a/www/manager6/dc/ACLView.js
+++ b/www/manager6/dc/ACLView.js
@@ -222,7 +222,7 @@ Ext.define('PVE.dc.ACLView', {
 	    },
 	    columns: columns,
 	    listeners: {
-		show: reload
+		render: reload
 	    }
 	});
 
diff --git a/www/manager6/dc/AuthView.js b/www/manager6/dc/AuthView.js
index 83e79c6..cadbee8 100644
--- a/www/manager6/dc/AuthView.js
+++ b/www/manager6/dc/AuthView.js
@@ -136,7 +136,7 @@ Ext.define('PVE.dc.AuthView', {
 		}
 	    ],
 	    listeners: {
-		show: reload,
+		render: reload,
 		itemdblclick: run_editor
 	    }
 	});
diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 9cc2f7d..b11aad5 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -448,7 +448,7 @@ Ext.define('PVE.dc.BackupView', {
 		}
 	    ],
 	    listeners: {
-		show: reload,
+		render: reload,
 		itemdblclick: run_editor
 	    }
 	});
diff --git a/www/manager6/dc/GroupView.js b/www/manager6/dc/GroupView.js
index 6950a46..011c7db 100644
--- a/www/manager6/dc/GroupView.js
+++ b/www/manager6/dc/GroupView.js
@@ -100,7 +100,7 @@ Ext.define('PVE.dc.GroupView', {
 		}
 	    ],
 	    listeners: {
-		show: reload,
+		render: reload,
 		itemdblclick: run_editor
 	    }
 	});
diff --git a/www/manager6/dc/OptionView.js b/www/manager6/dc/OptionView.js
index 4de75a1..bd6de1d 100644
--- a/www/manager6/dc/OptionView.js
+++ b/www/manager6/dc/OptionView.js
@@ -186,12 +186,11 @@ Ext.define('PVE.dc.OptionView', {
 	    tbar: [ edit_btn ],
 	    rows: rows,
 	    listeners: {
+		render: reload,
 		itemdblclick: run_editor
 	    }
 	});
 
 	me.callParent();
-
-	me.on('show', reload);
     }
 });
diff --git a/www/manager6/dc/PoolView.js b/www/manager6/dc/PoolView.js
index 4ae99e2..659576f 100644
--- a/www/manager6/dc/PoolView.js
+++ b/www/manager6/dc/PoolView.js
@@ -100,7 +100,7 @@ Ext.define('PVE.dc.PoolView', {
 		}
 	    ],
 	    listeners: {
-		show: reload,
+		render: reload,
 		itemdblclick: run_editor
 	    }
 	});
diff --git a/www/manager6/dc/RoleView.js b/www/manager6/dc/RoleView.js
index cbfe82d..d912dc9 100644
--- a/www/manager6/dc/RoleView.js
+++ b/www/manager6/dc/RoleView.js
@@ -52,7 +52,7 @@ Ext.define('PVE.dc.RoleView', {
 		}
 	    ],
 	    listeners: {
-		show: function() {
+		render: function() {
 		    store.load();
 		}
 	    }
diff --git a/www/manager6/dc/SecurityGroups.js b/www/manager6/dc/SecurityGroups.js
index 0e31295..a8f17cb 100644
--- a/www/manager6/dc/SecurityGroups.js
+++ b/www/manager6/dc/SecurityGroups.js
@@ -178,7 +178,7 @@ Ext.define('PVE.SecurityGroupList', {
 		deselect: function() {
 		    me.rule_panel.setBaseUrl(undefined);
 		},
-		show: reload
+		render: reload
 	    }
 	});
 
diff --git a/www/manager6/dc/StorageView.js b/www/manager6/dc/StorageView.js
index 4bcf3b7..6200283 100644
--- a/www/manager6/dc/StorageView.js
+++ b/www/manager6/dc/StorageView.js
@@ -245,7 +245,7 @@ Ext.define('PVE.dc.StorageView', {
 		}
 	    ],
 	    listeners: {
-		show: reload,
+		render: reload,
 		itemdblclick: run_editor
 	    }
 	});
diff --git a/www/manager6/dc/Summary.js b/www/manager6/dc/Summary.js
index b0f8b32..109e45f 100644
--- a/www/manager6/dc/Summary.js
+++ b/www/manager6/dc/Summary.js
@@ -128,7 +128,7 @@ Ext.define('PVE.dc.Summary', {
 	    layout: 'border',
 	    items: [ nodegrid ],
 	    listeners: {
-		show: function() {
+		render: function() {
 		    nodegrid.fireEvent('show', nodegrid);
 		},
 		hide: function() {
diff --git a/www/manager6/dc/Support.js b/www/manager6/dc/Support.js
index 1ed32d4..2cfac10 100644
--- a/www/manager6/dc/Support.js
+++ b/www/manager6/dc/Support.js
@@ -69,7 +69,7 @@ Ext.define('PVE.dc.Support', {
 	    autoScroll: true,
 	    bodyStyle: 'padding:10px',
 	    listeners: {
-		show: reload
+		render: reload
 	    }
 	});
 
diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js
index c4f8a8b..6159442 100644
--- a/www/manager6/dc/UserView.js
+++ b/www/manager6/dc/UserView.js
@@ -225,7 +225,7 @@ Ext.define('PVE.dc.UserView', {
 		}
 	    ],
 	    listeners: {
-		show: reload,
+		render: reload,
 		itemdblclick: run_editor
 	    }
 	});
diff --git a/www/manager6/grid/BackupView.js b/www/manager6/grid/BackupView.js
index aba6d2d..9e7453a 100644
--- a/www/manager6/grid/BackupView.js
+++ b/www/manager6/grid/BackupView.js
@@ -198,7 +198,7 @@ Ext.define('PVE.grid.BackupView', {
 		}
 	    ],
 	    listeners: {
-		show: reload
+		render: reload
 	    }
 	});
 
diff --git a/www/manager6/grid/PoolMembers.js b/www/manager6/grid/PoolMembers.js
index 932f475..c229c53 100644
--- a/www/manager6/grid/PoolMembers.js
+++ b/www/manager6/grid/PoolMembers.js
@@ -172,7 +172,7 @@ Ext.define('PVE.grid.PoolMembers', {
             },
             columns: coldef,
 	    listeners: {
-		show: reload
+		render: reload
 	    }
 	});
 
diff --git a/www/manager6/panel/IPSet.js b/www/manager6/panel/IPSet.js
index 2aae7df..51d2332 100644
--- a/www/manager6/panel/IPSet.js
+++ b/www/manager6/panel/IPSet.js
@@ -159,7 +159,7 @@ Ext.define('PVE.IPSetList', {
 		deselect: function() {
 		    me.ipset_panel.setBaseUrl(undefined);
 		},
-		show: reload
+		render: reload
 	    }
 	});
 
-- 
2.1.4





More information about the pve-devel mailing list