Skip to content

Commit

Permalink
Add timestamp tooltip
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>

Compile

Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed May 26, 2021
1 parent 222ac93 commit c09e3fb
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 47 deletions.
8 changes: 4 additions & 4 deletions apps/files/js/dist/files-app-settings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/files-app-settings.js.map

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions apps/files/js/dist/personal-settings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/personal-settings.js.map

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions apps/files/js/dist/sidebar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/sidebar.js.map

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions apps/files/js/dist/templates.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/templates.js.map

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions apps/files/src/views/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
import { encodePath } from '@nextcloud/paths'
import $ from 'jquery'
import axios from '@nextcloud/axios'
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'
Expand Down Expand Up @@ -169,6 +171,14 @@ export default {
return OC.Util.relativeModifiedDate(this.fileInfo.mtime)
},

/**
* File last modified full string
* @returns {string}
*/
fullTime() {
return moment(this.fileInfo.mtime).format('LLL')
},

/**
* File size formatted string
* @returns {string}
Expand Down Expand Up @@ -202,6 +212,7 @@ export default {
loading: this.loading,
starred: this.fileInfo.isFavourited,
subtitle: this.subtitle,
subtitleTooltip: this.fullTime,
title: this.fileInfo.name,
}
} else if (this.error) {
Expand Down

0 comments on commit c09e3fb

Please sign in to comment.