[pve-devel] [PATCH manager v2] fix #1115 reload storage grid after template download
Emmanuel Kasper
e.kasper at proxmox.com
Mon Sep 26 16:24:20 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
---
change since V1:
* rename reload() to reloadGrid() to show better the scope of our action
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..14d65ca 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.reloadGrid);
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,
+ reloadGrid: reload
});
win.show();
- win.on('destroy', reload);
}
});
--
2.1.4
More information about the pve-devel
mailing list