web/admin: fix list of webauthn devices not updating after rename
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
3a58dc62e1
commit
7d26ea1a9c
|
@ -51,9 +51,13 @@ export class UserSettingsAuthenticatorWebAuthn extends BaseUserSettings {
|
||||||
slot="form"
|
slot="form"
|
||||||
successMessage=${t`Successfully updated device.`}
|
successMessage=${t`Successfully updated device.`}
|
||||||
.send=${(data: unknown) => {
|
.send=${(data: unknown) => {
|
||||||
return new AuthenticatorsApi(DEFAULT_CONFIG).authenticatorsWebauthnUpdate({
|
return new AuthenticatorsApi(DEFAULT_CONFIG)
|
||||||
|
.authenticatorsWebauthnUpdate({
|
||||||
id: device.pk || 0,
|
id: device.pk || 0,
|
||||||
webAuthnDeviceRequest: data as WebAuthnDevice,
|
webAuthnDeviceRequest: data as WebAuthnDevice,
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.requestUpdate();
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
Reference in New Issue