[pbs-devel] [PATCH proxmox-backup 4/9] ui: datastore/Summary: change destroy listener
Dominik Csapak
d.csapak at proxmox.com
Wed May 26 11:12:01 CEST 2021
by using beforedestroy instead of destroy (like we do everywhere else)
to avoid race condition when the controller has
already removed some handlers on destruction
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/datastore/Summary.js | 2 +-
www/tape/ChangerStatus.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/datastore/Summary.js b/www/datastore/Summary.js
index 25a7b6e5..998b6297 100644
--- a/www/datastore/Summary.js
+++ b/www/datastore/Summary.js
@@ -86,7 +86,7 @@ Ext.define('PBS.DataStoreInfo', {
listeners: {
activate: 'startStore',
- destroy: 'stopStore',
+ beforedestroy: 'stopStore',
deactivate: 'stopStore',
},
diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js
index 51ba6ffa..0fad11b3 100644
--- a/www/tape/ChangerStatus.js
+++ b/www/tape/ChangerStatus.js
@@ -668,7 +668,7 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
listeners: {
deactivate: 'cancelReload',
- destroy: 'cancelReload',
+ beforedestroy: 'cancelReload',
},
tbar: [
--
2.20.1
More information about the pbs-devel
mailing list