Skip to content

Commit

Permalink
GUI BugFix for Show timestamp in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
EduJGURJC committed Oct 21, 2019
1 parent 4f2b68d commit 901e683
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
</li>
<!-- <mat-divider *ngIf="model.prevTraces.length > 0" class="push-bottom push-top"></mat-divider> -->
<li *ngFor="let trace of model.traces" fxLayout="row">
<pre *ngIf="model.showTimestamp && trace.timestamp" [class]="getTraceLevelClass(trace)">{{ trace.timestamp + ' ' }}</pre>
<pre
*ngIf="model.showTimestamp && trace.timestamp"
[class]="getTraceLevelClass(trace)"
>{{ trace.timestamp | date: 'yyyy-MM-dd HH:mm:ss.SSS' + ' ' }}</pre
>
<pre [class]="getTraceLevelClass(trace)" fxFlex>{{ trace.message }}</pre>
</li>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@
</button>
<span fxFlex></span>
<mat-checkbox
#showTimestampCheckbox
[(ngModel)]="model.showTimestamp"
id="showLogTimestampCheckbox"
name="showLogTimestampCheckbox"
matTooltip="Show timestamp"
[labelPosition]="'before'"
Expand Down

0 comments on commit 901e683

Please sign in to comment.