feat: 💄 button icons for security

This commit is contained in:
ThatOneCalculator 2023-06-15 16:42:24 -07:00
parent 16b2eda924
commit 892a9ad0b6
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
3 changed files with 14 additions and 11 deletions

View File

@ -35,7 +35,7 @@
<a :href="twoFactorData.url" <a :href="twoFactorData.url"
><img :class="$style.qr" :src="twoFactorData.qr" ><img :class="$style.qr" :src="twoFactorData.qr"
/></a> /></a>
<div style="max-width: 600px;"> <div style="max-width: 600px">
<MkKeyValue :copy="twoFactorData.url"> <MkKeyValue :copy="twoFactorData.url">
<template #key>{{ i18n.ts._2fa.step2Url }}</template> <template #key>{{ i18n.ts._2fa.step2Url }}</template>
<template #value>{{ twoFactorData.url }}</template> <template #value>{{ twoFactorData.url }}</template>

View File

@ -12,14 +12,16 @@
<div v-if="$i.twoFactorEnabled" class="_gaps_s"> <div v-if="$i.twoFactorEnabled" class="_gaps_s">
<div v-text="i18n.ts._2fa.alreadyRegistered" /> <div v-text="i18n.ts._2fa.alreadyRegistered" />
<template v-if="$i.securityKeysList.length > 0"> <template v-if="$i.securityKeysList.length > 0">
<MkButton @click="renewTOTP">{{ <MkButton @click="renewTOTP"
i18n.ts._2fa.renewTOTP ><i class="ph-shield-check ph-bold ph-lg"></i
}}</MkButton> >{{ i18n.ts._2fa.renewTOTP }}</MkButton
>
<MkInfo>{{ i18n.ts._2fa.whyTOTPOnlyRenew }}</MkInfo> <MkInfo>{{ i18n.ts._2fa.whyTOTPOnlyRenew }}</MkInfo>
</template> </template>
<MkButton v-else @click="unregisterTOTP">{{ <MkButton v-else @click="unregisterTOTP"
i18n.ts.unregister ><i class="ph-shield-slash ph-bold ph-lg"></i
}}</MkButton> >{{ i18n.ts.unregister }}</MkButton
>
</div> </div>
<MkButton <MkButton
@ -51,9 +53,10 @@
</MkInfo> </MkInfo>
<template v-else> <template v-else>
<MkButton primary @click="addSecurityKey">{{ <MkButton primary @click="addSecurityKey"
i18n.ts._2fa.registerSecurityKey ><i class="ph-key ph-bold ph-lg"></i
}}</MkButton> >{{ i18n.ts._2fa.registerSecurityKey }}</MkButton
>
<MkFolder <MkFolder
v-for="key in $i.securityKeysList" v-for="key in $i.securityKeysList"
:key="key.id" :key="key.id"

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="_formRoot"> <div class="_formRoot">
<FormSection> <FormSection style="border: none !important">
<template #label>{{ i18n.ts.password }}</template> <template #label>{{ i18n.ts.password }}</template>
<MkButton primary @click="change()">{{ <MkButton primary @click="change()">{{
i18n.ts.changePassword i18n.ts.changePassword