Skip to content
Snippets Groups Projects
Commit da05632d authored by Radek Puš's avatar Radek Puš
Browse files

fixed expenses in history table (view)

parent 93308ea8
No related branches found
No related tags found
No related merge requests found
......@@ -27,10 +27,10 @@
<th mat-header-cell *matHeaderCellDef> Name </th>
<td mat-cell *matCellDef="let element"> {{element.name}} </td>
</ng-container>
<!-- Weight Column -->
<ng-container matColumnDef="weight">
<th mat-header-cell *matHeaderCellDef> Weight </th>
<td mat-cell *matCellDef="let element"> {{element.weight}} </td>
<!-- Amount Column -->
<ng-container matColumnDef="amount">
<th mat-header-cell *matHeaderCellDef> Amount </th>
<td mat-cell *matCellDef="let element"> {{element.amount}} </td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
......
......@@ -15,7 +15,7 @@ export class HomeComponent implements OnInit {
@ViewChild(MatPaginator, { static: true })
paginator: MatPaginator;
dataSource: MatTableDataSource<FutureTransaction>;
displayedColumns: string[] = ['position', 'name', 'weight'];
displayedColumns: string[] = ['position', 'name', 'amount'];
 
 
LoginStatus$: Observable<boolean>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment