[pve-devel] [PATCH manager 3/4] ceph: gui: use separate reload function
Alwin Antreich
a.antreich at proxmox.com
Tue Oct 27 17:47:16 CET 2020
on existing buttons.
Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
www/manager6/ceph/Pool.js | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index d1fb2f3e..28b0b4a5 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -230,9 +230,7 @@ Ext.define('PVE.node.CephPoolList', {
nodename: nodename,
});
win.show();
- win.on('destroy', function() {
- rstore.load();
- });
+ win.on('destroy', reload);
}
});
@@ -278,9 +276,7 @@ Ext.define('PVE.node.CephPoolList', {
},
item: { type: 'CephPool', id: rec.data.pool_name }
}).show();
- win.on('destroy', function() {
- rstore.load();
- });
+ win.on('destroy', reload);
}
});
--
2.27.0
More information about the pve-devel
mailing list