From 7d26ea1a9cab769be3e46a6c4876677ee5109f92 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 1 Sep 2021 18:58:59 +0200 Subject: [PATCH] web/admin: fix list of webauthn devices not updating after rename Signed-off-by: Jens Langhammer --- .../settings/UserSettingsAuthenticatorWebAuthn.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web/src/pages/user-settings/settings/UserSettingsAuthenticatorWebAuthn.ts b/web/src/pages/user-settings/settings/UserSettingsAuthenticatorWebAuthn.ts index eda60bb0f..8436125fe 100644 --- a/web/src/pages/user-settings/settings/UserSettingsAuthenticatorWebAuthn.ts +++ b/web/src/pages/user-settings/settings/UserSettingsAuthenticatorWebAuthn.ts @@ -51,10 +51,14 @@ export class UserSettingsAuthenticatorWebAuthn extends BaseUserSettings { slot="form" successMessage=${t`Successfully updated device.`} .send=${(data: unknown) => { - return new AuthenticatorsApi(DEFAULT_CONFIG).authenticatorsWebauthnUpdate({ - id: device.pk || 0, - webAuthnDeviceRequest: data as WebAuthnDevice, - }); + return new AuthenticatorsApi(DEFAULT_CONFIG) + .authenticatorsWebauthnUpdate({ + id: device.pk || 0, + webAuthnDeviceRequest: data as WebAuthnDevice, + }) + .then(() => { + this.requestUpdate(); + }); }} >