From 525709338d9be353c6ae0a69f408f842249e6de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Pu=C5=A1?= <pusradek@fit.cvut.cz> Date: Tue, 24 Dec 2019 04:31:27 +0100 Subject: [PATCH] =?UTF-8?q?p=C5=99id=C3=A1no=20pole=20pro=20tla=C4=8D?= =?UTF-8?q?=C3=ADtko=20smazat=20u=20soubor=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../file-history/file-history.component.html | 10 +++++----- .../components/file-history/file-history.component.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Core/Core/ClientApp/src/app/home/components/file-history/file-history.component.html b/Core/Core/ClientApp/src/app/home/components/file-history/file-history.component.html index 3e914ff..f53cd5f 100644 --- a/Core/Core/ClientApp/src/app/home/components/file-history/file-history.component.html +++ b/Core/Core/ClientApp/src/app/home/components/file-history/file-history.component.html @@ -9,15 +9,15 @@ <!-- Name Column --> <ng-container matColumnDef="name"> - <th mat-header-cell *matHeaderCellDef> Name </th> + <th mat-header-cell *matHeaderCellDef> Název </th> <td mat-cell *matCellDef="let element"> {{element.name}} </td> </ng-container> - <!-- Symbol Column --> - <!--<ng-container matColumnDef="symbol"> - <th mat-header-cell *matHeaderCellDef> Symbol </th> + <!--Delete Column--> + <ng-container matColumnDef="delete"> + <th mat-header-cell *matHeaderCellDef> Smazat </th> <td mat-cell *matCellDef="let element"> {{element.symbol}} </td> - </ng-container>--> + </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/components/file-history/file-history.component.ts b/Core/Core/ClientApp/src/app/home/components/file-history/file-history.component.ts index 928a46b..c0598d0 100644 --- a/Core/Core/ClientApp/src/app/home/components/file-history/file-history.component.ts +++ b/Core/Core/ClientApp/src/app/home/components/file-history/file-history.component.ts @@ -13,7 +13,7 @@ export class FileHistoryComponent implements OnInit { @ViewChild(MatPaginator, { static: true }) paginator: MatPaginator; dataSource: MatTableDataSource<File>; - displayedColumns: string[] = ['position', 'name']; + displayedColumns: string[] = ['position', 'name', 'delete']; ngOnInit() { this.dataSource.paginator = this.paginator; -- GitLab