[profile] #318 profile QR codes - make less overwhelming visually

This commit is contained in:
Andrea Vos 2022-09-10 00:51:43 +02:00
parent 2a2a3b7baa
commit ff3c6e9ec0
5 changed files with 16 additions and 2 deletions

View File

@ -10,7 +10,12 @@
<Share nolabel shareApiSeparate/>
</div>
<div class="list-group-item small p-2 text-center">
<QrCode :url="`https://${$t('domain')}/@${user.username}`"
<button v-if="!showQr" class="btn btn-sm btn-outline-primary" @click="showQr = true">
<Icon v="scanner"/>
<T>user.qr.header</T>
</button>
<QrCode v-if="showQr"
:url="`https://${$t('domain')}/@${user.username}`"
:text1="$t('domain')" :text2="`@${user.username}`"
download border
style="max-width: 256px; margin: 0 auto"/>
@ -22,6 +27,11 @@
export default {
props: {
user: { required: true },
}
},
data() {
return {
showQr: false,
}
},
}
</script>

View File

@ -572,6 +572,7 @@ user:
disable: 'Disable MFA'
disableConfirm: 'Are you sure you want to disable MFA?'
qr:
header: 'QR code'
download: 'Download QR code'
profile:

View File

@ -665,6 +665,7 @@ user:
If you don't want to keep your account, you don't need to do anything.
cta: 'Create a card'
qr:
header: 'QR code'
download: 'Download QR code'
profile:

View File

@ -48,5 +48,6 @@ export default [
'footer.stats.keys.responseTime',
'privacy.header',
'user.avatar.failed',
'user.qr.header',
'user.qr.download',
];

View File

@ -1310,6 +1310,7 @@ user:
disable: 'Wyłącz MFA'
disableConfirm: 'Czy na pewno chcesz wyłączyć MFA?'
qr:
header: 'Kod QR'
download: 'Pobierz kod QR'
profile: