[pbs-devel] [PATCH proxmox-backup 1/3] ui: gc view: use beforedestroy for stopping the store

Dominik Csapak d.csapak at proxmox.com
Mon Apr 22 13:05:03 CEST 2024


because during destroy, the controller (and the relevant function) might
not be there anymore

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/config/GCView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/config/GCView.js b/www/config/GCView.js
index 852dca5d..de43bc25 100644
--- a/www/config/GCView.js
+++ b/www/config/GCView.js
@@ -111,7 +111,7 @@ Ext.define('PBS.config.GCJobView', {
 
     listeners: {
 	activate: 'startStore',
-	destroy: 'stopStore',
+	beforedestroy: 'stopStore',
 	deactivate: 'stopStore',
 	itemdblclick: 'editGCJob',
     },
-- 
2.39.2





More information about the pbs-devel mailing list