ui: webauthn: fix stopping store upgrades on destroy

`deactivate` is only triggered if we switch to a different tab on
the same navigation level, but if we switch to a completely different
component (e.g., fom `Options -> Others` to `Datastore foo`) we can
only work with the destroy event, use the before one as else we
cannot access the view controllers method anymore.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-02-07 15:17:00 +01:00
parent 7b944ff11a
commit 21898bb831

View File

@ -44,6 +44,7 @@ Ext.define('PBS.WebauthnConfigView', {
itemdblclick: 'runEditor',
activate: 'startStore',
deactivate: 'stopStore',
beforedestroy: 'stopStore',
},
});