diff options
author | Christopher Ng <chrng8@gmail.com> | 2021-06-14 17:07:15 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2021-06-14 17:07:15 +0000 |
commit | c2e4c2ae2714f7e401f6d6245408f84cddb597db (patch) | |
tree | 9a6acf78a88403b05ca350b47e3c02eb58e59be7 /apps/files/src | |
parent | 22c53fb21a8996bfe368e4e78a24c82429ce5aa5 (diff) | |
download | nextcloud-server-c2e4c2ae2714f7e401f6d6245408f84cddb597db.tar.gz nextcloud-server-c2e4c2ae2714f7e401f6d6245408f84cddb597db.zip |
Add timestamp tooltip
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/views/Sidebar.vue | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue index fa53f2af0a9..bc0af133145 100644 --- a/apps/files/src/views/Sidebar.vue +++ b/apps/files/src/views/Sidebar.vue @@ -83,6 +83,8 @@ import { encodePath } from '@nextcloud/paths' import $ from 'jquery' import axios from '@nextcloud/axios' import { emit } from '@nextcloud/event-bus' +import moment from '@nextcloud/moment' + import AppSidebar from '@nextcloud/vue/dist/Components/AppSidebar' import ActionButton from '@nextcloud/vue/dist/Components/ActionButton' import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent' @@ -176,6 +178,14 @@ export default { }, /** + * File last modified full string + * @returns {string} + */ + fullTime() { + return moment(this.fileInfo.mtime).format('LLL') + }, + + /** * File size formatted string * @returns {string} */ @@ -211,6 +221,7 @@ export default { loading: this.loading, starred: this.fileInfo.isFavourited, subtitle: this.subtitle, + subtitleTooltip: this.fullTime, title: this.fileInfo.name, } } else if (this.error) { |