[pve-devel] [manager] Allow delete image from storage ContentView.
Wolfgang Link
w.link at proxmox.com
Tue Nov 13 07:44:18 CET 2018
---
www/manager6/storage/ContentView.js | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js
index 0661065d..b74d2c14 100644
--- a/www/manager6/storage/ContentView.js
+++ b/www/manager6/storage/ContentView.js
@@ -440,13 +440,17 @@ Ext.define('PVE.storage.ContentView', {
{
xtype: 'proxmoxStdRemoveButton',
selModel: sm,
- enableFn: function(rec) {
- return rec && rec.data.content !== 'images';
- },
callback: function() {
reload();
},
- baseurl: baseurl + '/'
+ getUrl: function(rec) {
+
+ var url = baseurl + '/' + rec.getId();
+ if (rec && rec.data.content === 'images') {
+ url += '?check=1';
+ }
+ return url;
+ },
},
templateButton,
uploadButton,
--
2.11.0
More information about the pve-devel
mailing list