From 138ef8e23c5131bb543553c6362e6374bd69f0ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarda=20Kot=C4=9B=C5=A1ovec?= Date: Wed, 27 Nov 2024 10:27:36 +0100 Subject: [PATCH] pkp/pkp-lib#10618 Styling of email listing and individual notifications --- src/composables/useDate.js | 6 ++++- .../primary/WorkflowListingEmails.vue | 27 +++++++++++++------ .../primary/WorkflowNotificationDisplay.vue | 11 +++++--- 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/src/composables/useDate.js b/src/composables/useDate.js index a9b6975ff..b1442136f 100644 --- a/src/composables/useDate.js +++ b/src/composables/useDate.js @@ -15,5 +15,9 @@ export function useDate() { return moment(dateString).format('DD-MM-YYYY'); } - return {calculateDaysBetweenDates, formatShortDate}; + function formatDateAndTime(dateString) { + return moment(dateString).format('YYYY-MM-DD hh:mm A'); + } + + return {calculateDaysBetweenDates, formatShortDate, formatDateAndTime}; } diff --git a/src/pages/workflow/components/primary/WorkflowListingEmails.vue b/src/pages/workflow/components/primary/WorkflowListingEmails.vue index 906bff743..27e202ed9 100644 --- a/src/pages/workflow/components/primary/WorkflowListingEmails.vue +++ b/src/pages/workflow/components/primary/WorkflowListingEmails.vue @@ -1,13 +1,25 @@