Merge pull request #45136 from nextcloud/feat/webauthn/submit-device-name

feat(webauthn): submit device name by pressing enter
pull/45096/head
Richard Steinmetz 2024-05-02 18:01:12 +07:00 committed by GitHub
commit 197e6dcd86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 11 deletions

@ -2,6 +2,7 @@
- @copyright 2020, Roeland Jago Douma <roeland@famdouma.nl>
-
- @author Roeland Jago Douma <roeland@famdouma.nl>
- @author 2024 Richard Steinmetz <richard@steinmetz.cloud>
-
- @license GNU AGPL version 3 or any later version
-
@ -39,14 +40,16 @@
<div v-else-if="step === RegistrationSteps.NAMING"
class="new-webauthn-device">
<span class="icon-loading-small webauthn-loading" />
<NcTextField ref="nameInput"
class="new-webauthn-device__name"
:label="t('settings', 'Device name')"
:value.sync="name"
show-trailing-button
:trailing-button-label="t('settings', 'Add')"
trailing-button-icon="arrowRight"
@trailing-button-click="submit" />
<form @submit.prevent="submit">
<NcTextField ref="nameInput"
class="new-webauthn-device__name"
:label="t('settings', 'Device name')"
:value.sync="name"
show-trailing-button
:trailing-button-label="t('settings', 'Add')"
trailing-button-icon="arrowRight"
@trailing-button-click="submit" />
</form>
</div>
<div v-else-if="step === RegistrationSteps.PERSIST"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long