[pve-devel] [PATCH manager 7/7] ui: node/{ACME, Certificates}: add stopUpdate on destruction

Dominik Csapak d.csapak at proxmox.com
Thu May 7 10:27:13 CEST 2020


else the stores never stop updating

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/node/ACME.js         | 1 +
 www/manager6/node/Certificates.js | 1 +
 2 files changed, 2 insertions(+)

diff --git a/www/manager6/node/ACME.js b/www/manager6/node/ACME.js
index d21d18e4..0418f406 100644
--- a/www/manager6/node/ACME.js
+++ b/www/manager6/node/ACME.js
@@ -731,5 +731,6 @@ Ext.define('PVE.node.ACME', {
 	me.callParent();
 	me.mon(me.rstore, 'load', 'updateStore', me);
 	Proxmox.Utils.monStoreErrors(me, me.rstore);
+	me.on('destroy', me.rstore.stopUpdate, me.rstore);
     },
 });
diff --git a/www/manager6/node/Certificates.js b/www/manager6/node/Certificates.js
index df2fd7de..0c5dfc68 100644
--- a/www/manager6/node/Certificates.js
+++ b/www/manager6/node/Certificates.js
@@ -399,5 +399,6 @@ Ext.define('PVE.node.Certificates', {
 
 	me.mon(me.rstore, 'load', me.set_button_status, me);
 	me.rstore.startUpdate();
+	me.on('destroy', me.rstore.stopUpdate, me.rstore);
     }
 });
-- 
2.20.1





More information about the pve-devel mailing list