Skip to content

Commit

Permalink
fix date in detail
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed May 19, 2023
1 parent 97217de commit adea15b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CommonUI/src/Components/Detail/Detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
18 changes: 18 additions & 0 deletions Mail/Templates/StatusPageOwnerAnnouncementCreated.hbs
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit adea15b

Please sign in to comment.