mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Display exact date on hover (#10536)
This commit is contained in:
@@ -11,7 +11,7 @@ div
|
||||
)
|
||||
| {{msg.user}}
|
||||
.svg-icon(v-html="tierIcon", v-if='showShowTierStyle')
|
||||
p.time {{msg.timestamp | timeAgo}}
|
||||
p.time(v-b-tooltip="", :title="msg.timestamp | date") {{msg.timestamp | timeAgo}}
|
||||
.text(v-markdown='msg.text')
|
||||
hr
|
||||
.action(@click='like()', v-if='!inbox && msg.likes', :class='{active: msg.likes[user._id]}')
|
||||
@@ -72,6 +72,7 @@ div
|
||||
.time {
|
||||
font-size: 12px;
|
||||
color: #878190;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.text {
|
||||
@@ -165,7 +166,7 @@ export default {
|
||||
return moment(value).fromNow();
|
||||
},
|
||||
date (value) {
|
||||
// @TODO: Add user preference
|
||||
// @TODO: Vue doesn't support this so we cant user preference
|
||||
return moment(value).toDate();
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user