feat: mod time title on file info

This commit is contained in:
Ramires Viana
2021-04-23 11:57:56 +00:00
parent 1c25f6ee69
commit 7d1e03075d
2 changed files with 8 additions and 2 deletions

View File

@@ -16,7 +16,7 @@
<strong>{{ $t("prompts.size") }}:</strong>
<span id="content_length"></span> {{ humanSize }}
</p>
<p v-if="selected.length < 2">
<p v-if="selected.length < 2" :title="modTime">
<strong>{{ $t("prompts.lastModified") }}:</strong> {{ humanTime }}
</p>
@@ -110,6 +110,9 @@ export default {
return moment(this.req.items[this.selected[0]].modified).fromNow();
},
modTime: function () {
return new Date(Date.parse(this.req.modified)).toLocaleString();
},
name: function () {
return this.selectedCount === 0
? this.req.name