From da05632ddc7dc74b16e5da02c35a676ed603f9fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20Pu=C5=A1?= <pusradek@fit.cvut.cz>
Date: Wed, 11 Dec 2019 21:38:29 +0100
Subject: [PATCH] fixed expenses in history table (view)

---
 Core/Core/ClientApp/src/app/home/home.component.html | 8 ++++----
 Core/Core/ClientApp/src/app/home/home.component.ts   | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Core/Core/ClientApp/src/app/home/home.component.html b/Core/Core/ClientApp/src/app/home/home.component.html
index a2866f0..b05d87b 100644
--- a/Core/Core/ClientApp/src/app/home/home.component.html
+++ b/Core/Core/ClientApp/src/app/home/home.component.html
@@ -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>
diff --git a/Core/Core/ClientApp/src/app/home/home.component.ts b/Core/Core/ClientApp/src/app/home/home.component.ts
index 942547a..bef1810 100644
--- a/Core/Core/ClientApp/src/app/home/home.component.ts
+++ b/Core/Core/ClientApp/src/app/home/home.component.ts
@@ -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>;
-- 
GitLab