From adea15b069515c359206c04019c65a4fa0060100 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Fri, 19 May 2023 13:57:59 +0100 Subject: [PATCH] fix date in detail --- CommonUI/src/Components/Detail/Detail.tsx | 2 +- .../StatusPageOwnerAnnouncementCreated.hbs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CommonUI/src/Components/Detail/Detail.tsx b/CommonUI/src/Components/Detail/Detail.tsx index 25a9a90de2c..509f7aa757d 100644 --- a/CommonUI/src/Components/Detail/Detail.tsx +++ b/CommonUI/src/Components/Detail/Detail.tsx @@ -78,7 +78,7 @@ const Detail: Function = (props: ComponentProps): ReactElement => { let data: string | ReactElement = ''; if (_.get(props.item, fieldKey)) { - data = _.get(props.item, fieldKey, '')?.toString() || ''; + data = _.get(props.item, fieldKey, '') as any || ''; } if (field.fieldType === FieldType.Date) { diff --git a/Mail/Templates/StatusPageOwnerAnnouncementCreated.hbs b/Mail/Templates/StatusPageOwnerAnnouncementCreated.hbs index e69de29bb2d..73f1423605e 100644 --- a/Mail/Templates/StatusPageOwnerAnnouncementCreated.hbs +++ b/Mail/Templates/StatusPageOwnerAnnouncementCreated.hbs @@ -0,0 +1,18 @@ +{{> Start this}} + +{{> Logo this}} +{{> EmailTitle title=(concat "Announcement: " announcementTitle) }} + +{{> InfoBlock info=(concat "A new announcement has been created for : " statusPageName) }} + +{{> DetailBoxStart this }} +{{> DetailBoxField title=announcementTitle text="" }} +{{> DetailBoxField title="" text=announcementDescription }} +{{> DetailBoxEnd this }} + + +{{> OwnerInfo this }} + +{{> Footer this }} + +{{> End this}} \ No newline at end of file