aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/src
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-03-09 17:38:51 +0100
committerLouis Chemineau <louis@chmn.me>2023-03-09 17:38:51 +0100
commit97b56da75ef47c1bfe227d66d413e4d37846f3ff (patch)
tree8307e42eef27143eb3bf240ffd99092847d44b39 /apps/files_versions/src
parent315510df8464a97656f614b6b4ba15a3fb11d337 (diff)
downloadnextcloud-server-97b56da75ef47c1bfe227d66d413e4d37846f3ff.tar.gz
nextcloud-server-97b56da75ef47c1bfe227d66d413e4d37846f3ff.zip
Use native tooltip for versions
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files_versions/src')
-rw-r--r--apps/files_versions/src/components/Version.vue11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/files_versions/src/components/Version.vue b/apps/files_versions/src/components/Version.vue
index e584eb887a3..8f7cbd7ad50 100644
--- a/apps/files_versions/src/components/Version.vue
+++ b/apps/files_versions/src/components/Version.vue
@@ -32,7 +32,7 @@
</template>
<template #subtitle>
<div class="version__info">
- <span v-tooltip="formattedDate">{{ version.mtime | humanDateFromNow }}</span>
+ <span :title="formattedDate">{{ version.mtime | humanDateFromNow }}</span>
<!-- Separate dot to improve alignement -->
<span class="version__info__size">•</span>
<span class="version__info__size">{{ version.size | humanReadableSize }}</span>
@@ -223,6 +223,11 @@ export default {
return this.version.preview
}
},
+
+ /** @return {string} */
+ formattedDate() {
+ return moment(this.version.mtime).format('LLL')
+ },
},
methods: {
openVersionLabelModal() {
@@ -245,10 +250,6 @@ export default {
deleteVersion() {
this.$emit('delete', this.version)
},
-
- formattedDate() {
- return moment(this.version.mtime)
- },
},
}
</script>