ui: datastore/Summary: change destroy listener

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@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-05-26 11:12:01 +02:00 committed by Thomas Lamprecht
parent e9805b2486
commit f8735e5988
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ Ext.define('PBS.DataStoreInfo', {
listeners: {
activate: 'startStore',
destroy: 'stopStore',
beforedestroy: 'stopStore',
deactivate: 'stopStore',
},

View File

@ -668,7 +668,7 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
listeners: {
deactivate: 'cancelReload',
destroy: 'cancelReload',
beforedestroy: 'cancelReload',
},
tbar: [