[pve-devel] [PATCH manager 5/6] ui: tree/SnapshotTree: use beforedestroy instead of destroy
Dominik Csapak
d.csapak at proxmox.com
Wed May 26 11:01:11 CEST 2021
on extjs 7.0, this triggers when the handler is not available anymore,
so use the beforedestroy event instead
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/tree/SnapshotTree.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/manager6/tree/SnapshotTree.js b/www/manager6/tree/SnapshotTree.js
index 39fcf88a..6b2431f5 100644
--- a/www/manager6/tree/SnapshotTree.js
+++ b/www/manager6/tree/SnapshotTree.js
@@ -229,7 +229,7 @@ Ext.define('PVE.guest.SnapshotTree', {
listeners: {
selectionchange: 'select',
itemdblclick: 'editSnapshot',
- destroy: 'cancel',
+ beforedestroy: 'cancel',
},
layout: 'fit',
--
2.20.1
More information about the pve-devel
mailing list