mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 03:38:06 +02:00
Use anchor tag for better accessibility
This commit is contained in:
parent
685b26ace0
commit
bc7c824d3d
@ -232,13 +232,6 @@
|
|||||||
isFetching.value = false
|
isFetching.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Pushes user to the dedicated capture view for live scan
|
|
||||||
*/
|
|
||||||
function capture() {
|
|
||||||
router.push({ name: 'capture' })
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies that valid account(s) have been found for import
|
* Notifies that valid account(s) have been found for import
|
||||||
*/
|
*/
|
||||||
@ -260,16 +253,14 @@
|
|||||||
<!-- scan button that launch camera stream -->
|
<!-- scan button that launch camera stream -->
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<div class="buttons mb-0">
|
<div class="buttons mb-0">
|
||||||
<button tabindex="0" class="button is-link is-rounded mr-0" @click="capture()">
|
<RouterLink id="btnCapture" :to="{ name: 'capture' }" class="button is-link is-rounded mr-0">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<FontAwesomeIcon :icon="['fas', 'camera']" />
|
<FontAwesomeIcon :icon="['fas', 'camera']" />
|
||||||
</span>
|
</span>
|
||||||
<span>{{ $t('twofaccounts.import.scan') }}</span>
|
<span>{{ $t('twofaccounts.import.scan') }}</span>
|
||||||
</button>
|
</RouterLink>
|
||||||
<span class="p-2 mb-2">{{ $t('commons.or') }}</span>
|
<span class="p-2 mb-2">{{ $t('commons.or') }}</span>
|
||||||
<!-- </div> -->
|
|
||||||
<!-- upload a qr code (with basic file field and backend decoding) -->
|
<!-- upload a qr code (with basic file field and backend decoding) -->
|
||||||
<!-- <div class="block"> -->
|
|
||||||
<label role="button" tabindex="0" class="button is-link is-rounded is-outlined" ref="qrcodeInputLabel" @keyup.enter="qrcodeInputLabel.click()">
|
<label role="button" tabindex="0" class="button is-link is-rounded is-outlined" ref="qrcodeInputLabel" @keyup.enter="qrcodeInputLabel.click()">
|
||||||
{{ $t('twofaccounts.import.upload') }}
|
{{ $t('twofaccounts.import.upload') }}
|
||||||
<input aria-hidden="true" tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="submitQrCode" ref="qrcodeInput">
|
<input aria-hidden="true" tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="submitQrCode" ref="qrcodeInput">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user