Added Sorting to the new collumns

This commit is contained in:
2020-06-29 17:21:07 +02:00
parent cf0e8ee2cd
commit e009ac1386
4 changed files with 14 additions and 14 deletions

View File

@@ -31,7 +31,7 @@
</th>
<th (click)="sortByStatus()" class="sortable">
<span>Status</span>
<span *ngIf="sortBy === 'status'" class="pl-3">
<span *ngIf="sortBy === 'statusid'" class="pl-3">
<span *ngIf="sortDescending"></span>
<span *ngIf="sortDescending === false"></span>
</span>
@@ -51,7 +51,7 @@
</th>
<th (click)="sortByCategory()" class="sortable">
<span>Category</span>
<span *ngIf="sortBy === 'category'" class="pl-3">
<span *ngIf="sortBy === 'categoryid'" class="pl-3">
<span *ngIf="sortDescending"></span>
<span *ngIf="sortDescending === false"></span>
</span>
@@ -73,11 +73,11 @@
<a [routerLink]="['/status', {id: userstory.statusid}]">
Status: {{userstory.statusid}}
</a>
</td>s
</td>
<td>{{userstory.priority}}</td>
<td>
<a [routerLink]="['/categories', {id: userstory.categoryid}]">
Status: {{userstory.categoryid}}
Category: {{userstory.categoryid}}
</a>
</td>
<td>