Skip to content

Commit

Permalink
Merge pull request #27051 from nextcloud/feat/timestamp-tooltip
Browse files Browse the repository at this point in the history
Add timestamp tooltip
  • Loading branch information
Pytal authored Jun 14, 2021
2 parents 22c53fb + c2e4c2a commit 41b778d
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 49 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.

28 changes: 14 additions & 14 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 @@ -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'
Expand Down Expand Up @@ -175,6 +177,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 @@ -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) {
Expand Down

0 comments on commit 41b778d

Please sign in to comment.