From 21898bb8319de5f1185d4516e57336bf1e9ce45b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 7 Feb 2022 15:17:00 +0100 Subject: [PATCH] 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 --- www/config/WebauthnView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/config/WebauthnView.js b/www/config/WebauthnView.js index 614ea139..db2d7d8a 100644 --- a/www/config/WebauthnView.js +++ b/www/config/WebauthnView.js @@ -44,6 +44,7 @@ Ext.define('PBS.WebauthnConfigView', { itemdblclick: 'runEditor', activate: 'startStore', deactivate: 'stopStore', + beforedestroy: 'stopStore', }, });