feat: 💄 button icons for security

This commit is contained in:
ThatOneCalculator 2023-06-15 16:42:24 -07:00
parent db7b82d2a7
commit 1622ec3620
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