diff options
Diffstat (limited to 'apps/comments/src/components/Moment.vue')
-rw-r--r-- | apps/comments/src/components/Moment.vue | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/apps/comments/src/components/Moment.vue b/apps/comments/src/components/Moment.vue deleted file mode 100644 index a91ed8b9ce6..00000000000 --- a/apps/comments/src/components/Moment.vue +++ /dev/null @@ -1,31 +0,0 @@ -<!-- TODO: Move to vue components --> - -<template> - <span class="live-relative-timestamp" :data-timestamp="timestamp * 1000" :title="title">{{ formatted }}</span> -</template> - -<script> -import moment from '@nextcloud/moment' - -export default { - name: 'Moment', - props: { - timestamp: { - type: Number, - required: true, - }, - format: { - type: String, - default: 'LLL', - }, - }, - computed: { - title() { - return moment.unix(this.timestamp).format(this.format) - }, - formatted() { - return moment.unix(this.timestamp).fromNow() - }, - }, -} -</script> |