Added dates to table and date Sorting

This commit is contained in:
2020-06-29 16:51:49 +02:00
parent 5fb7122aa7
commit cf0e8ee2cd
4 changed files with 42 additions and 1 deletions

View File

@@ -22,6 +22,20 @@
<span *ngIf="sortDescending === false"></span>
</span>
</th>
<th (click)="sortByStartDate()" class="sortable">
<span>Start</span>
<span *ngIf="sortBy === 'startDate'" class="pl-3">
<span *ngIf="sortDescending"></span>
<span *ngIf="sortDescending === false"></span>
</span>
</th>
<th (click)="sortByEndDate()" class="endDate">
<span>End</span>
<span *ngIf="sortBy === 'endDate'" class="pl-3">
<span *ngIf="sortDescending"></span>
<span *ngIf="sortDescending === false"></span>
</span>
</th>
<th></th>
</tr>
</thead>
@@ -30,6 +44,8 @@
<tr *ngFor="let sprint of filteredItems" [class.table-info]="sprint.id === highlightId">
<td>{{sprint.id}}</td>
<td>{{sprint.title}}</td>
<td>{{sprint.startDate | date:'dd.MM.yyyy'}}</td>
<td>{{sprint.endDate | date:'dd.MM.yyyy'}}</td>
<td>
<button class="btn btn-secondary m-2" (click)="openSprintForm(sprint)">Bearbeiten</button>
<button class="btn btn-secondary m-2" (click)="deleteSprint(sprint)">Löschen</button>