add user visible note that login history expires

The display variant where no signin history items are present has been
made shorter and more appropriate.
This commit is contained in:
Johann150 2022-10-02 11:33:21 +02:00
parent 5b7a06675f
commit 198058b19a
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 18 additions and 13 deletions

View file

@ -479,6 +479,7 @@ youHaveNoGroups: "You have no groups"
joinOrCreateGroup: "Get invited to a group or create your own." joinOrCreateGroup: "Get invited to a group or create your own."
noHistory: "No history available" noHistory: "No history available"
signinHistory: "Login history" signinHistory: "Login history"
signinHistoryExpires: "Data about past login attempts is automatically deleted after 60 days to comply with privacy regulations."
disableAnimatedMfm: "Disable MFM with animation" disableAnimatedMfm: "Disable MFM with animation"
doing: "Processing..." doing: "Processing..."
category: "Category" category: "Category"

View file

@ -12,20 +12,24 @@
<FormSection> <FormSection>
<template #label>{{ i18n.ts.signinHistory }}</template> <template #label>{{ i18n.ts.signinHistory }}</template>
<MkPagination :pagination="pagination"> <FormSlot>
<template #default="{items}"> <MkPagination :pagination="pagination">
<div> <template #default="{items}">
<div v-for="item in items" :key="item.id" v-panel class="timnmucd"> <div>
<header> <div v-for="item in items" :key="item.id" v-panel class="timnmucd">
<i v-if="item.success" class="fas fa-check icon succ"></i> <header>
<i v-else class="fas fa-times-circle icon fail"></i> <i v-if="item.success" class="fas fa-check icon succ"></i>
<code class="ip _monospace">{{ item.ip }}</code> <i v-else class="fas fa-times-circle icon fail"></i>
<MkTime :time="item.createdAt" class="time"/> <code class="ip _monospace">{{ item.ip }}</code>
</header> <MkTime :time="item.createdAt" class="time"/>
</header>
</div>
</div> </div>
</div> </template>
</template> <template #empty>{{ i18n.ts.noMoreHistory }}</template>
</MkPagination> </MkPagination>
<template #caption>{{ i18n.ts.signinHistoryExpires }}</template>
</FormSlot>
</FormSection> </FormSection>
<FormSection> <FormSection>