Add last edited at indicator in status

This commit is contained in:
Tusooa Zhu 2022-06-22 16:05:27 -04:00
parent 08c9aa4bf3
commit ed8bc61022
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
3 changed files with 32 additions and 1 deletions

View file

@ -392,6 +392,12 @@ const Status = {
},
visibilityLocalized () {
return this.$i18n.t('general.scope_in_timeline.' + this.status.visibility)
},
isEdited () {
return this.status.edited_at !== null
},
editingAvailable () {
return this.$store.state.instance.editingAvailable
}
},
methods: {

View file

@ -156,7 +156,8 @@
margin-right: 0.2em;
}
& .heading-reply-row {
& .heading-reply-row,
& .heading-edited-row {
position: relative;
align-content: baseline;
font-size: 0.85em;

View file

@ -328,6 +328,30 @@
class="mentions-line"
/>
</div>
<div
v-if="isEdited && editingAvailable"
class="heading-edited-row"
>
<i18n-t
keypath="status.edited_at"
tag="span"
>
<template #time>
<i18n-t
keypath="time.in_past"
tag="span"
>
<template>
<Timeago
:time="status.edited_at"
:auto-update="60"
:long-format="true"
/>
</template>
</i18n-t>
</template>
</i18n-t>
</div>
</div>
<StatusContent