Display exact date on hover (#10536)

This commit is contained in:
Keith Holliday
2018-07-21 08:09:36 -05:00
committed by GitHub
parent 0fc66bef4e
commit f464403623

View File

@@ -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();
},
},