From 881523adb6b9466c3f7c07753de21c1dcce23702 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 11 Jan 2024 10:42:56 +0100 Subject: [PATCH] update webauthn section to feature components Signed-off-by: Simon L --- .../settings/src/components/WebAuthn/AddDevice.vue | 14 ++++++++++---- apps/settings/src/components/WebAuthn/Section.vue | 14 ++++++++------ 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/apps/settings/src/components/WebAuthn/AddDevice.vue b/apps/settings/src/components/WebAuthn/AddDevice.vue index 947bc662418..f9b3223d8cb 100644 --- a/apps/settings/src/components/WebAuthn/AddDevice.vue +++ b/apps/settings/src/components/WebAuthn/AddDevice.vue @@ -25,9 +25,9 @@
- +
- +
import { confirmPassword } from '@nextcloud/password-confirmation' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import '@nextcloud/password-confirmation/dist/style.css' import logger from '../../logger.js' @@ -84,6 +85,11 @@ const RegistrationSteps = Object.freeze({ export default { name: 'AddDevice', + + components: { + NcButton, + }, + props: { httpWarning: Boolean, isHttps: { diff --git a/apps/settings/src/components/WebAuthn/Section.vue b/apps/settings/src/components/WebAuthn/Section.vue index 9172a8ca080..5a323f39fd9 100644 --- a/apps/settings/src/components/WebAuthn/Section.vue +++ b/apps/settings/src/components/WebAuthn/Section.vue @@ -25,20 +25,20 @@

{{ 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.') }} -

+ import { confirmPassword } from '@nextcloud/password-confirmation' +import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js' import '@nextcloud/password-confirmation/dist/style.css' import sortBy from 'lodash/fp/sortBy.js' @@ -63,6 +64,7 @@ export default { components: { AddDevice, Device, + NcNoteCard, }, props: { initialDevices: { -- 2.39.5