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

@@ -78,7 +78,7 @@
<div class="share__box__element">
<strong>{{ $t("prompts.displayName") }}</strong> {{ req.name }}
</div>
<div class="share__box__element">
<div class="share__box__element" :title="modTime">
<strong>{{ $t("prompts.lastModified") }}:</strong> {{ humanTime }}
</div>
<div class="share__box__element">
@@ -244,6 +244,9 @@ export default {
humanTime: function () {
return moment(this.req.modified).fromNow();
},
modTime: function () {
return new Date(Date.parse(this.req.modified)).toLocaleString();
},
},
methods: {
...mapMutations(["resetSelected", "updateRequest", "setLoading"]),