diff --git a/src/app/task-table/task-table.component.html b/src/app/task-table/task-table.component.html
index 7cbd4df..1eb3b65 100644
--- a/src/app/task-table/task-table.component.html
+++ b/src/app/task-table/task-table.component.html
@@ -40,6 +40,13 @@
▼
+
+ Status
+
+ ▲
+ ▼
+
+ |
Priorität
|
+
+ Assigned To
+
+ ▲
+ ▼
+
+ |
+
+ Category
+
+ ▲
+ ▼
+
+ |
|
@@ -66,7 +87,22 @@
US #{{task.userstoryid}}
+
+
+ Status: {{task.statusid}}
+
+ |
{{task.priority}} |
+
+
+ Status: {{task.assignedtoid}}
+
+ |
+
+
+ Status: {{task.categoryid}}
+
+ |
diff --git a/src/app/task-table/task-table.component.ts b/src/app/task-table/task-table.component.ts
index 50dd98c..20ded7a 100644
--- a/src/app/task-table/task-table.component.ts
+++ b/src/app/task-table/task-table.component.ts
@@ -5,6 +5,8 @@ import {TaskFormComponent} from '../task-form/task-form.component';
import {TableComponentBase} from '../services/table-component.base';
import {ActivatedRoute, ParamMap, Router} from '@angular/router';
import {getNumberForPriority} from '../services/sorting.service';
+import { Title } from '@angular/platform-browser';
+import { isNumber } from 'util';
@Component({
selector: 'app-userstory-table',
@@ -93,6 +95,16 @@ export class TaskTableComponent extends TableComponentBase {
this.doNumericSort('userstory', task => task.userstoryid);
}
+ sortByStatus() {
+ this.doStringSort('title', task => task.title);
+ }
+ sortByAssigned() {
+ this.doStringSort('title', task => task.title);
+ }
+ sortByCategory() {
+ this.doStringSort('title', task => task.title);
+ }
+
private findTaskById(id: number): ScrumTask {
return this.items.find(t => t.id === id);
}
diff --git a/src/app/userstory-table/userstory-table.component.html b/src/app/userstory-table/userstory-table.component.html
index de1b587..704f977 100644
--- a/src/app/userstory-table/userstory-table.component.html
+++ b/src/app/userstory-table/userstory-table.component.html
@@ -29,6 +29,13 @@
▼
+
+ Status
+
+ ▲
+ ▼
+
+ |
Priorität
|
+
+ Category
+
+ ▲
+ ▼
+
+ |
|
@@ -55,7 +69,17 @@
{{getNumberOfTasks(userstory)}} Tasks
|
+
+
+ Status: {{userstory.statusid}}
+
+ | s
{{userstory.priority}} |
+
+
+ Status: {{userstory.categoryid}}
+
+ |
diff --git a/src/app/userstory-table/userstory-table.component.ts b/src/app/userstory-table/userstory-table.component.ts
index dc245ec..e73c0e2 100644
--- a/src/app/userstory-table/userstory-table.component.ts
+++ b/src/app/userstory-table/userstory-table.component.ts
@@ -95,4 +95,11 @@ export class UserstoryTableComponent extends TableComponentBase
public sortByTasks() {
this.doNumericSort('tasks', us => this.getNumberOfTasks(us));
}
+
+ sortByStatus() {
+ this.doStringSort('title', us => us.title);
+ }
+ sortByCategory() {
+ this.doStringSort('title', us => us.title);
+ }
}
|