[pve-devel] [PATCH manager] fix #1115 reload storage grid after template download

Emmanuel Kasper e.kasper at proxmox.com
Mon Sep 26 15:23:33 CEST 2016


Refresh the grid after the template has been downloaded, instead
of refreshing after the template has been selected.

this fix a the problem that a newly Turnkey / PVE downloaded template
would not be shown in the storage content grid after closing the task
window
---
 www/manager6/storage/ContentView.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js
index 3180fae..98c93af 100644
--- a/www/manager6/storage/ContentView.js
+++ b/www/manager6/storage/ContentView.js
@@ -127,6 +127,7 @@ Ext.define('PVE.storage.TemplateDownload', {
 			    upid: upid
 			});
 			win.show();
+			win.on('destroy', me.reload);
 			me.close();
 		    }
 		});
@@ -372,10 +373,10 @@ Ext.define('PVE.storage.ContentView', {
 	    handler: function() {
 		var win = Ext.create('PVE.storage.TemplateDownload', {
 		    nodename: nodename,
-		    storage: storage
+		    storage: storage,
+		    reload: reload
 		});
 		win.show();
-		win.on('destroy', reload);
 	    }
 	});
 
-- 
2.1.4





More information about the pve-devel mailing list