Handle zero time in UI

Signed-off-by: cd1989 <chende@caicloud.io>
This commit is contained in:
cd1989 2019-09-06 17:48:54 +08:00
parent 8990a621d6
commit 08f15cee26

View File

@ -110,7 +110,7 @@
<clr-dg-cell>{{t.operation}}</clr-dg-cell>
<clr-dg-cell>{{t.status}}</clr-dg-cell>
<clr-dg-cell>{{t.start_time | date: 'short'}}</clr-dg-cell>
<clr-dg-cell>{{t.end_time ? (t.end_time | date: 'short') : "-"}}</clr-dg-cell>
<clr-dg-cell>{{t.end_time && t.end_time != '0001-01-01T00:00:00Z' ? (t.end_time | date: 'short') : "-"}}</clr-dg-cell>
<clr-dg-cell>
<a target="_blank" [href]="viewLog(t.id)">
<clr-icon shape="list"></clr-icon>