Skip to content

Commit 25e0919

Browse files
committed
Add timestamp tooltip
Signed-off-by: Christopher Ng <[email protected]>
1 parent 222ac93 commit 25e0919

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

apps/files/src/views/Sidebar.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
import { encodePath } from '@nextcloud/paths'
7979
import $ from 'jquery'
8080
import axios from '@nextcloud/axios'
81+
import moment from '@nextcloud/moment'
82+
8183
import AppSidebar from '@nextcloud/vue/dist/Components/AppSidebar'
8284
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
8385
import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent'
@@ -169,6 +171,14 @@ export default {
169171
return OC.Util.relativeModifiedDate(this.fileInfo.mtime)
170172
},
171173
174+
/**
175+
* File last modified full string
176+
* @returns {string}
177+
*/
178+
fullTime() {
179+
return moment(this.fileInfo.mtime).format('LLL')
180+
},
181+
172182
/**
173183
* File size formatted string
174184
* @returns {string}
@@ -202,6 +212,7 @@ export default {
202212
loading: this.loading,
203213
starred: this.fileInfo.isFavourited,
204214
subtitle: this.subtitle,
215+
subtitleTooltip: this.fullTime,
205216
title: this.fileInfo.name,
206217
}
207218
} else if (this.error) {

0 commit comments

Comments
 (0)