From 72f3ae632be460ef2fafe935469384cf696353ff Mon Sep 17 00:00:00 2001 From: Omar Hussein Date: Fri, 29 Dec 2023 03:28:14 -0500 Subject: [PATCH] Fix modification hover date --- frontend/src/components/prompts/Info.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/prompts/Info.vue b/frontend/src/components/prompts/Info.vue index af4bdeb1..1bac4cca 100644 --- a/frontend/src/components/prompts/Info.vue +++ b/frontend/src/components/prompts/Info.vue @@ -138,7 +138,13 @@ export default { return dayjs(this.req.items[this.selected[0]].modified).fromNow(); }, modTime: function () { - return new Date(Date.parse(this.req.modified)).toLocaleString(); + if (this.selectedCount === 0) { + return new Date(Date.parse(this.req.modified)).toLocaleString(); + } + + return new Date( + Date.parse(this.req.items[this.selected[0]].modified) + ).toLocaleString(); }, name: function () { return this.selectedCount === 0