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:
parent
e9805b2486
commit
f8735e5988
|
@ -86,7 +86,7 @@ Ext.define('PBS.DataStoreInfo', {
|
||||||
|
|
||||||
listeners: {
|
listeners: {
|
||||||
activate: 'startStore',
|
activate: 'startStore',
|
||||||
destroy: 'stopStore',
|
beforedestroy: 'stopStore',
|
||||||
deactivate: 'stopStore',
|
deactivate: 'stopStore',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -668,7 +668,7 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||||
|
|
||||||
listeners: {
|
listeners: {
|
||||||
deactivate: 'cancelReload',
|
deactivate: 'cancelReload',
|
||||||
destroy: 'cancelReload',
|
beforedestroy: 'cancelReload',
|
||||||
},
|
},
|
||||||
|
|
||||||
tbar: [
|
tbar: [
|
||||||
|
|
Loading…
Reference in New Issue