Merge pull request #5253 from fitrahfm/feat/tooltip-for-comment-timestamp
This commit is contained in:
@@ -48,7 +48,9 @@
|
|||||||
<NcActionButton icon="icon-close" @click="hideUpdateForm" />
|
<NcActionButton icon="icon-close" @click="hideUpdateForm" />
|
||||||
</NcActions>
|
</NcActions>
|
||||||
<div class="spacer" />
|
<div class="spacer" />
|
||||||
<div class="timestamp">
|
<div class="timestamp"
|
||||||
|
:aria-label="formattedTimestamp"
|
||||||
|
:title="formattedTimestamp">
|
||||||
{{ relativeDate(comment.creationDateTime) }}
|
{{ relativeDate(comment.creationDateTime) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -70,6 +72,7 @@ import { getCurrentUser } from '@nextcloud/auth'
|
|||||||
import md5 from 'blueimp-md5'
|
import md5 from 'blueimp-md5'
|
||||||
import relativeDate from '../../mixins/relativeDate.js'
|
import relativeDate from '../../mixins/relativeDate.js'
|
||||||
import ReplyIcon from 'vue-material-design-icons/Reply.vue'
|
import ReplyIcon from 'vue-material-design-icons/Reply.vue'
|
||||||
|
import moment from 'moment'
|
||||||
|
|
||||||
const AtMention = {
|
const AtMention = {
|
||||||
name: 'AtMention',
|
name: 'AtMention',
|
||||||
@@ -158,6 +161,9 @@ export default {
|
|||||||
return (div.textContent || div.innerText || '')
|
return (div.textContent || div.innerText || '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
formattedTimestamp() {
|
||||||
|
return t('deck', 'Created:') + ' ' + moment(this.comment.creationDateTime).format('LLLL')
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user