From 5d3cce3b8bd92e6e62c7229e8be12028175a7022 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Wed, 19 Feb 2025 13:10:27 +0100 Subject: [PATCH] fix: date view in list entries --- components/base/ListImageItem.vue | 8 +++----- components/base/ListItem.vue | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/components/base/ListImageItem.vue b/components/base/ListImageItem.vue index 323035b..4a40a1d 100644 --- a/components/base/ListImageItem.vue +++ b/components/base/ListImageItem.vue @@ -24,7 +24,7 @@

{{ data?.title }}

-

+

{{ itemDate }}

@@ -78,10 +78,8 @@ const itemDate = computed(() => { props.lookup?.list_with_date == "none" || props.lookup?.items_with_number != "none" ? ("2-digit" as const) : undefined, - minute: - props.data?.date.includes("T") && props.lookup?.items_with_number != "none" ? ("2-digit" as const) : undefined, - hour: - props.data?.date.includes("T") && props.lookup?.items_with_number != "none" ? ("2-digit" as const) : undefined, + minute: props.data?.date.includes("T") ? ("2-digit" as const) : undefined, + hour: props.data?.date.includes("T") ? ("2-digit" as const) : undefined, }; if (Object.values(config).filter((c) => c).length != 0) { //(props.lookup?.list_with_date != "none" || props.lookup?.show_date) diff --git a/components/base/ListItem.vue b/components/base/ListItem.vue index bcd6c89..2be7a84 100644 --- a/components/base/ListItem.vue +++ b/components/base/ListItem.vue @@ -10,7 +10,7 @@

{{ data?.title }}

-

+

{{ itemDate }}

@@ -59,10 +59,8 @@ const itemDate = computed(() => { props.lookup?.list_with_date == "none" || props.lookup?.items_with_number != "none" ? ("2-digit" as const) : undefined, - minute: - props.data?.date.includes("T") && props.lookup?.items_with_number != "none" ? ("2-digit" as const) : undefined, - hour: - props.data?.date.includes("T") && props.lookup?.items_with_number != "none" ? ("2-digit" as const) : undefined, + minute: props.data?.date.includes("T") ? ("2-digit" as const) : undefined, + hour: props.data?.date.includes("T") ? ("2-digit" as const) : undefined, }; if (Object.values(config).filter((c) => c).length != 0) { //(props.lookup?.list_with_date != "none" || props.lookup?.show_date)