Skip to content

Commit a724a48

Browse files
LNK-4526: add timestamp for reports (#1336)
* LNK-4526: Add Timestamp for Reports * LNK-4526: Add timestamp for Reports * LNK-4526: Add timestamp to Reports
1 parent 59a1cd5 commit a724a48

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

Web/Admin.UI/src/app/components/reports/reports-dashboard/reports-dashboard.component.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@
7070
'status-pending': report.submitted == false,
7171
'status-submitted': report.submitted == true
7272
}">{{ report.submitted ? 'Submitted' : 'Pending' }}</span>
73-
<span style="display: block; margin-top: 1em;"
74-
*ngIf="report.submitted">{{ report.submitDate }}</span>
75-
<span style="display: block; margin-top: 1em;"
76-
*ngIf="report.createdDate">{{ report.createdDate }}</span>
73+
@if (report.submitted) {
74+
<span style="display: block; margin-top: 1em;"
75+
>{{ report.submitDate }}</span>
76+
}
77+
@else if (report.createdDate) {
78+
<span style="display: block; margin-top: 1em;"
79+
>{{ report.createdDate }}</span>
80+
}
7781
</td>
7882
<td>
7983
<button type="button"

Web/Admin.UI/src/app/components/tenant/facility-view/facility-view.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
<span style="display: block; margin-top: 1em;"
141141
>{{ report.submitDate }}</span>
142142
}
143-
@if (report.createdDate) {
143+
@else if (report.createdDate) {
144144
<span style="display: block; margin-top: 1em;"
145145
>{{ report.createdDate }}</span>
146146
}

0 commit comments

Comments
 (0)