From 7d1e03075d2c27148f60813defa0f68403d1d3c2 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Fri, 23 Apr 2021 11:57:56 +0000 Subject: [PATCH] feat: mod time title on file info --- frontend/src/components/prompts/Info.vue | 5 ++++- frontend/src/views/Share.vue | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/prompts/Info.vue b/frontend/src/components/prompts/Info.vue index a474fffe..5312ac76 100644 --- a/frontend/src/components/prompts/Info.vue +++ b/frontend/src/components/prompts/Info.vue @@ -16,7 +16,7 @@ {{ $t("prompts.size") }}: {{ humanSize }}
-+
{{ $t("prompts.lastModified") }}: {{ humanTime }}
@@ -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 diff --git a/frontend/src/views/Share.vue b/frontend/src/views/Share.vue index e44b2839..56a128b6 100644 --- a/frontend/src/views/Share.vue +++ b/frontend/src/views/Share.vue @@ -78,7 +78,7 @@ -