diff --git a/src/app/components/backlog/backlog.component.ts b/src/app/components/backlog/backlog.component.ts
index 110058a..f966f3d 100644
--- a/src/app/components/backlog/backlog.component.ts
+++ b/src/app/components/backlog/backlog.component.ts
@@ -74,22 +74,22 @@ export class BacklogComponent {
/**
* Getter that returns an array with all userstories that are in the currently selected sprint.
- * The relation to the sprint is determined by the userstory's sprintid.
+ * The relation to the sprint is determined by the userstory's sprintId.
* If no sprint is selected it just returns an empty array.
*/
public get choosen(): ScrumUserstory[] {
if (this.selectedSprint === undefined) {
return null;
}
- return this.storys.filter((u) => u.sprintid == this.selectedSprint.id);
+ return this.storys.filter((u) => u.sprintId == this.selectedSprint.id);
}
/**
* Getter that returns an array with all userstories that aren't in any sprint.
- * The relation to no sprint is determined by the userstory's sprintid being undefined.
+ * The relation to no sprint is determined by the userstory's sprintId being undefined.
*/
public get backlog(): ScrumUserstory[] {
- return this.storys.filter((u) => u.sprintid === undefined);
+ return this.storys.filter((u) => u.sprintId === undefined);
}
/**
@@ -108,11 +108,11 @@ export class BacklogComponent {
//#region backlogFunctions
/**
- * Adds a userstory to the currently selected sprint by changing it's sprintid to the current sprint's id
+ * Adds a userstory to the currently selected sprint by changing it's sprintId to the current sprint's id
* @param userstory userstory object that shall be added to the selected sprint's backlog
*/
public addToSprintBacklog(userstory: ScrumUserstory) {
- userstory.sprintid = this.selectedSprint.id;
+ userstory.sprintId = this.selectedSprint.id;
this.backendService.putUserstory(userstory).subscribe((response) => {
if (response.status > 399) {
alert('Fehler');
@@ -121,11 +121,11 @@ export class BacklogComponent {
}
/**
- * Deletes a userstory from the currently selected sprint by changing it's sprintid to undefined
+ * Deletes a userstory from the currently selected sprint by changing it's sprintId to undefined
* @param userstory userstory object that shall be removed from the selected sprint's backlog
*/
public deleteFromSprintBacklog(userstory: ScrumUserstory) {
- userstory.sprintid = undefined;
+ userstory.sprintId = undefined;
this.backendService.putUserstory(userstory).subscribe((response) => {
if (response.status > 399) {
alert('Fehler');
diff --git a/src/app/components/dashboard/dashboard.component.ts b/src/app/components/dashboard/dashboard.component.ts
index e6710ce..be46283 100644
--- a/src/app/components/dashboard/dashboard.component.ts
+++ b/src/app/components/dashboard/dashboard.component.ts
@@ -15,7 +15,7 @@ export class DashboardComponent {
public get usedStatus(): ScrumStatus[] {
return this.status.filter(
(s) =>
- this.selectedSprintUserstories.find((us) => us.statusid === s.id) !==
+ this.selectedSprintUserstories.find((us) => us.statusId === s.id) !==
undefined
);
}
@@ -28,7 +28,7 @@ export class DashboardComponent {
return this.userstories;
}
return this.userstories.filter(
- (us) => us.sprintid === this.selectedSprint.id
+ (us) => us.sprintId === this.selectedSprint.id
);
}
@@ -181,7 +181,7 @@ export class DashboardComponent {
*/
public getNumberOfUserstoriesByStatus(status: ScrumStatus): number {
return this.selectedSprintUserstories.filter(
- (us) => us.statusid === status.id
+ (us) => us.statusId === status.id
).length;
}
diff --git a/src/app/components/sprint-form/sprint-form.component.ts b/src/app/components/sprint-form/sprint-form.component.ts
index 06e2b3f..9a1028c 100644
--- a/src/app/components/sprint-form/sprint-form.component.ts
+++ b/src/app/components/sprint-form/sprint-form.component.ts
@@ -13,7 +13,7 @@ import { BackendService, ScrumSprint } from '../../services/backend.service';
export class SprintFormComponent implements OnInit {
@Input() public sprint: ScrumSprint;
public editing: Boolean;
- public sprintid: string;
+ public sprintId: string;
constructor(
private backendService: BackendService,
diff --git a/src/app/components/tabels/task/task-table.component.html b/src/app/components/tabels/task/task-table.component.html
index ebe6f20..978b207 100644
--- a/src/app/components/tabels/task/task-table.component.html
+++ b/src/app/components/tabels/task/task-table.component.html
@@ -66,13 +66,13 @@