Browse Source

feat: add date column

pull/2466/head
Dhoni77 2 years ago
parent
commit
ec1ada16b0
  1. 25
      libs/ui/src/lib/benchmark/benchmark.component.html
  2. 2
      libs/ui/src/lib/benchmark/benchmark.component.ts

25
libs/ui/src/lib/benchmark/benchmark.component.html

@ -6,6 +6,31 @@
</td>
</ng-container>
<ng-container matColumnDef="date">
<th
*matHeaderCellDef
class="d-none d-lg-table-cell text-right"
mat-header-cell
>
<span class="d-none d-sm-block text-nowrap" i18n>Last All Time High</span>
</th>
<td
*matCellDef="let element"
class="d-none d-lg-table-cell text-right"
mat-cell
>
<gf-value
class="d-inline-block justify-content-end text-primary"
[isDate]="true"
[locale]="locale"
[value]="
element?.performances?.allTimeHigh?.date
| date: 'dd.MM.yyyy' ?? undefined
"
></gf-value>
</td>
</ng-container>
<ng-container matColumnDef="change">
<th *matHeaderCellDef class="text-right" mat-header-cell>
<span class="d-none d-sm-block text-nowrap" i18n

2
libs/ui/src/lib/benchmark/benchmark.component.ts

@ -18,7 +18,7 @@ export class BenchmarkComponent implements OnChanges {
@Input() benchmarks: Benchmark[];
@Input() locale: string;
public displayedColumns = ['name', 'change', 'marketCondition'];
public displayedColumns = ['name', 'date', 'change', 'marketCondition'];
public resolveMarketCondition = resolveMarketCondition;
public constructor() {}

Loading…
Cancel
Save