From c81b9001917773be1fd04a730fb242ca2307e856 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 3 Apr 2026 15:42:03 +0200 Subject: [PATCH] fix(settings): hide list of webauthn devices if empty - resolves https://github.com/nextcloud/server/issues/59339 If there are no devices the list would be empty. This is invalid for accessibility, as every list needs at least one listitem. Ref: https://www.w3.org/TR/wai-aria-1.2/#mustContain Signed-off-by: Ferdinand Thiessen --- .../components/WebAuthn/WebAuthnSection.vue | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/settings/src/components/WebAuthn/WebAuthnSection.vue b/apps/settings/src/components/WebAuthn/WebAuthnSection.vue index 2fe6aa93f2033..1d8acc400fdf9 100644 --- a/apps/settings/src/components/WebAuthn/WebAuthnSection.vue +++ b/apps/settings/src/components/WebAuthn/WebAuthnSection.vue @@ -9,20 +9,22 @@

{{ t('settings', 'Set up your account for passwordless authentication following the FIDO2 standard.') }}

+ {{ t('settings', 'No devices configured.') }} - -

- {{ t('settings', 'The following devices are configured for your account:') }} -

- + {{ t('settings', 'Your browser does not support WebAuthn.') }}