Add timestamp to last updated. Fixes #87

This commit is contained in:
Ricardo Gonzalez
2020-10-11 16:14:43 +01:00
parent 0fffc167fb
commit 95ef254b8c
@@ -69,7 +69,7 @@
class="font-bold text-md text-secondary uppercase tracking-wider">{{deviceTitle(disk)}}</a> class="font-bold text-md text-secondary uppercase tracking-wider">{{deviceTitle(disk)}}</a>
<div [ngClass]="{'text-green': disk.smart_results[0]?.smart_status == 'passed', <div [ngClass]="{'text-green': disk.smart_results[0]?.smart_status == 'passed',
'text-red': disk.smart_results[0]?.smart_status == 'failed' }" class="font-medium text-sm" *ngIf="disk.smart_results[0]"> 'text-red': disk.smart_results[0]?.smart_status == 'failed' }" class="font-medium text-sm" *ngIf="disk.smart_results[0]">
Last Updated on {{disk.smart_results[0]?.date | date:'MMMM dd, yyyy' }} Last Updated on {{disk.smart_results[0]?.date | date:'MMMM dd, yyyy - HH:mm' }}
</div> </div>
</div> </div>
<div class="ml-auto" *ngIf="disk.smart_results"> <div class="ml-auto" *ngIf="disk.smart_results">