Properly capitalize properties
This commit is contained in:
parent
3360a330d4
commit
e624dfdc15
@ -74,10 +74,10 @@
|
|||||||
<p class="card-text">{{ story.content }}</p>
|
<p class="card-text">{{ story.content }}</p>
|
||||||
<div title="Badges">
|
<div title="Badges">
|
||||||
<span class="badge badge-primary"
|
<span class="badge badge-primary"
|
||||||
>Category: {{ story.categoryid || "N/A" }}</span
|
>Category: {{ story.categoryId || "N/A" }}</span
|
||||||
>
|
>
|
||||||
<span class="badge badge-info"
|
<span class="badge badge-info"
|
||||||
>Status: {{ story.statusid || "N/A" }}</span
|
>Status: {{ story.statusId || "N/A" }}</span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -109,10 +109,10 @@
|
|||||||
<p class="card-text">{{ story.content }}</p>
|
<p class="card-text">{{ story.content }}</p>
|
||||||
<div title="Badges">
|
<div title="Badges">
|
||||||
<span class="badge badge-primary"
|
<span class="badge badge-primary"
|
||||||
>Category: {{ story.categoryid || "N/A" }}</span
|
>Category: {{ story.categoryId || "N/A" }}</span
|
||||||
>
|
>
|
||||||
<span class="badge badge-info"
|
<span class="badge badge-info"
|
||||||
>Status: {{ story.statusid || "N/A" }}</span
|
>Status: {{ story.statusId || "N/A" }}</span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
|
@ -74,22 +74,22 @@ export class BacklogComponent {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Getter that returns an array with all userstories that are in the currently selected sprint.
|
* 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.
|
* If no sprint is selected it just returns an empty array.
|
||||||
*/
|
*/
|
||||||
public get choosen(): ScrumUserstory[] {
|
public get choosen(): ScrumUserstory[] {
|
||||||
if (this.selectedSprint === undefined) {
|
if (this.selectedSprint === undefined) {
|
||||||
return null;
|
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.
|
* 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[] {
|
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
|
//#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
|
* @param userstory userstory object that shall be added to the selected sprint's backlog
|
||||||
*/
|
*/
|
||||||
public addToSprintBacklog(userstory: ScrumUserstory) {
|
public addToSprintBacklog(userstory: ScrumUserstory) {
|
||||||
userstory.sprintid = this.selectedSprint.id;
|
userstory.sprintId = this.selectedSprint.id;
|
||||||
this.backendService.putUserstory(userstory).subscribe((response) => {
|
this.backendService.putUserstory(userstory).subscribe((response) => {
|
||||||
if (response.status > 399) {
|
if (response.status > 399) {
|
||||||
alert('Fehler');
|
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
|
* @param userstory userstory object that shall be removed from the selected sprint's backlog
|
||||||
*/
|
*/
|
||||||
public deleteFromSprintBacklog(userstory: ScrumUserstory) {
|
public deleteFromSprintBacklog(userstory: ScrumUserstory) {
|
||||||
userstory.sprintid = undefined;
|
userstory.sprintId = undefined;
|
||||||
this.backendService.putUserstory(userstory).subscribe((response) => {
|
this.backendService.putUserstory(userstory).subscribe((response) => {
|
||||||
if (response.status > 399) {
|
if (response.status > 399) {
|
||||||
alert('Fehler');
|
alert('Fehler');
|
||||||
|
@ -15,7 +15,7 @@ export class DashboardComponent {
|
|||||||
public get usedStatus(): ScrumStatus[] {
|
public get usedStatus(): ScrumStatus[] {
|
||||||
return this.status.filter(
|
return this.status.filter(
|
||||||
(s) =>
|
(s) =>
|
||||||
this.selectedSprintUserstories.find((us) => us.statusid === s.id) !==
|
this.selectedSprintUserstories.find((us) => us.statusId === s.id) !==
|
||||||
undefined
|
undefined
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -28,7 +28,7 @@ export class DashboardComponent {
|
|||||||
return this.userstories;
|
return this.userstories;
|
||||||
}
|
}
|
||||||
return this.userstories.filter(
|
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 {
|
public getNumberOfUserstoriesByStatus(status: ScrumStatus): number {
|
||||||
return this.selectedSprintUserstories.filter(
|
return this.selectedSprintUserstories.filter(
|
||||||
(us) => us.statusid === status.id
|
(us) => us.statusId === status.id
|
||||||
).length;
|
).length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import { BackendService, ScrumSprint } from '../../services/backend.service';
|
|||||||
export class SprintFormComponent implements OnInit {
|
export class SprintFormComponent implements OnInit {
|
||||||
@Input() public sprint: ScrumSprint;
|
@Input() public sprint: ScrumSprint;
|
||||||
public editing: Boolean;
|
public editing: Boolean;
|
||||||
public sprintid: string;
|
public sprintId: string;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private backendService: BackendService,
|
private backendService: BackendService,
|
||||||
|
@ -66,13 +66,13 @@
|
|||||||
<th (click)="sortByStatus()" class="sortable">
|
<th (click)="sortByStatus()" class="sortable">
|
||||||
<span>Status</span>
|
<span>Status</span>
|
||||||
<span>
|
<span>
|
||||||
<span *ngIf="sortBy != 'statusid'"
|
<span *ngIf="sortBy != 'statusId'"
|
||||||
><i class="fa fa-sort fa-lg"></i
|
><i class="fa fa-sort fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
<span *ngIf="sortDescending && sortBy === 'statusid'"
|
<span *ngIf="sortDescending && sortBy === 'statusId'"
|
||||||
><i class="fa fa-sort-up fa-lg"></i
|
><i class="fa fa-sort-up fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
<span *ngIf="sortDescending === false && sortBy === 'statusid'"
|
<span *ngIf="sortDescending === false && sortBy === 'statusId'"
|
||||||
><i class="fa fa-sort-down fa-lg"></i
|
><i class="fa fa-sort-down fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
</span>
|
</span>
|
||||||
@ -127,13 +127,13 @@
|
|||||||
<th (click)="sortByCategory()" class="sortable">
|
<th (click)="sortByCategory()" class="sortable">
|
||||||
<span>Category</span>
|
<span>Category</span>
|
||||||
<span>
|
<span>
|
||||||
<span *ngIf="sortBy != 'categoryid'"
|
<span *ngIf="sortBy != 'categoryId'"
|
||||||
><i class="fa fa-sort fa-lg"></i
|
><i class="fa fa-sort fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
<span *ngIf="sortDescending && sortBy === 'categoryid'"
|
<span *ngIf="sortDescending && sortBy === 'categoryId'"
|
||||||
><i class="fa fa-sort-up fa-lg"></i
|
><i class="fa fa-sort-up fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
<span *ngIf="sortDescending === false && sortBy === 'categoryid'"
|
<span *ngIf="sortDescending === false && sortBy === 'categoryId'"
|
||||||
><i class="fa fa-sort-down fa-lg"></i
|
><i class="fa fa-sort-down fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
</span>
|
</span>
|
||||||
@ -150,24 +150,24 @@
|
|||||||
<td>{{ task.id }}</td>
|
<td>{{ task.id }}</td>
|
||||||
<td>{{ task.title }}</td>
|
<td>{{ task.title }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a [routerLink]="['/userstories', { id: task.userstoryid }]">
|
<a [routerLink]="['/userstories', { id: task.userstoryId }]">
|
||||||
US #{{ task.userstoryid }}
|
US #{{ task.userstoryId }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a [routerLink]="['/status', { id: task.statusid }]">
|
<a [routerLink]="['/status', { id: task.statusId }]">
|
||||||
{{ getStatusTitleById(task.statusid) }}
|
{{ getStatusTitleById(task.statusId) }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{{ task.priority }}</td>
|
<td>{{ task.priority }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a [routerLink]="['/users', { id: task.assignedtoid }]">
|
<a [routerLink]="['/users', { id: task.assignedtoId }]">
|
||||||
{{ getUserNameById(task.assignedtoid) }}
|
{{ getUserNameById(task.assignedtoId) }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a [routerLink]="['/categories', { id: task.categoryid }]">
|
<a [routerLink]="['/categories', { id: task.categoryId }]">
|
||||||
{{ getCategoryTitleById(task.categoryid) }}
|
{{ getCategoryTitleById(task.categoryId) }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -76,7 +76,7 @@ export class TaskTableComponent extends TableComponentBase<ScrumTask> {
|
|||||||
return this.items.filter(
|
return this.items.filter(
|
||||||
(task) =>
|
(task) =>
|
||||||
(this.filterUserstoryId === null ||
|
(this.filterUserstoryId === null ||
|
||||||
task.userstoryid === this.filterUserstoryId) &&
|
task.userstoryId === this.filterUserstoryId) &&
|
||||||
(this.filterPriority === null || task.priority === this.filterPriority)
|
(this.filterPriority === null || task.priority === this.filterPriority)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -148,31 +148,31 @@ export class TaskTableComponent extends TableComponentBase<ScrumTask> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sorts the tabel's items by userstoryid.
|
* Sorts the tabel's items by userstoryId.
|
||||||
*/
|
*/
|
||||||
sortByTasks() {
|
sortByTasks() {
|
||||||
this.doNumericSort('userstory', (task) => task.userstoryid);
|
this.doNumericSort('userstory', (task) => task.userstoryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sorts the tabel's items by statusid
|
* Sorts the tabel's items by statusId
|
||||||
*/
|
*/
|
||||||
sortByStatus() {
|
sortByStatus() {
|
||||||
this.doNumericSort('statusid', (task) => task.statusid);
|
this.doNumericSort('statusId', (task) => task.statusId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sorts the tabel's items by assignedtoid
|
* Sorts the tabel's items by assignedtoid
|
||||||
*/
|
*/
|
||||||
sortByAssigned() {
|
sortByAssigned() {
|
||||||
this.doNumericSort('assignedtoid', (task) => task.assignedtoid);
|
this.doNumericSort('assignedtoid', (task) => task.assignedtoId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sorts the tabel's items by categoryid
|
* Sorts the tabel's items by categoryId
|
||||||
*/
|
*/
|
||||||
sortByCategory() {
|
sortByCategory() {
|
||||||
this.doNumericSort('categoryid', (task) => task.categoryid);
|
this.doNumericSort('categoryId', (task) => task.categoryId);
|
||||||
}
|
}
|
||||||
//#endregion sorters
|
//#endregion sorters
|
||||||
|
|
||||||
|
@ -48,13 +48,13 @@
|
|||||||
<th (click)="sortByStatus()" class="sortable">
|
<th (click)="sortByStatus()" class="sortable">
|
||||||
<span>Status</span>
|
<span>Status</span>
|
||||||
<span>
|
<span>
|
||||||
<span *ngIf="sortBy != 'statusid'"
|
<span *ngIf="sortBy != 'statusId'"
|
||||||
><i class="fa fa-sort fa-lg"></i
|
><i class="fa fa-sort fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
<span *ngIf="sortDescending && sortBy === 'statusid'"
|
<span *ngIf="sortDescending && sortBy === 'statusId'"
|
||||||
><i class="fa fa-sort-up fa-lg"></i
|
><i class="fa fa-sort-up fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
<span *ngIf="sortDescending === false && sortBy === 'statusid'"
|
<span *ngIf="sortDescending === false && sortBy === 'statusId'"
|
||||||
><i class="fa fa-sort-down fa-lg"></i
|
><i class="fa fa-sort-down fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
</span>
|
</span>
|
||||||
@ -94,13 +94,13 @@
|
|||||||
<th (click)="sortByCategory()" class="sortable">
|
<th (click)="sortByCategory()" class="sortable">
|
||||||
<span>Category</span>
|
<span>Category</span>
|
||||||
<span>
|
<span>
|
||||||
<span *ngIf="sortBy != 'categoryid'"
|
<span *ngIf="sortBy != 'categoryId'"
|
||||||
><i class="fa fa-sort fa-lg"></i
|
><i class="fa fa-sort fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
<span *ngIf="sortDescending && sortBy === 'categoryid'"
|
<span *ngIf="sortDescending && sortBy === 'categoryId'"
|
||||||
><i class="fa fa-sort-up fa-lg"></i
|
><i class="fa fa-sort-up fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
<span *ngIf="sortDescending === false && sortBy === 'categoryid'"
|
<span *ngIf="sortDescending === false && sortBy === 'categoryId'"
|
||||||
><i class="fa fa-sort-down fa-lg"></i
|
><i class="fa fa-sort-down fa-lg"></i
|
||||||
></span>
|
></span>
|
||||||
</span>
|
</span>
|
||||||
@ -122,14 +122,14 @@
|
|||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a [routerLink]="['/status', { id: userstory.statusid }]">
|
<a [routerLink]="['/status', { id: userstory.statusId }]">
|
||||||
{{ getStatusTitleById(userstory.statusid) }}
|
{{ getStatusTitleById(userstory.statusId) }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{{ userstory.priority }}</td>
|
<td>{{ userstory.priority }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a [routerLink]="['/categories', { id: userstory.categoryid }]">
|
<a [routerLink]="['/categories', { id: userstory.categoryId }]">
|
||||||
{{ getCategoryTitleById(userstory.categoryid) }}
|
{{ getCategoryTitleById(userstory.categoryId) }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -17,9 +17,7 @@ import { ActivatedRoute, ParamMap, Router } from '@angular/router';
|
|||||||
templateUrl: './userstory-inner-table.component.html',
|
templateUrl: './userstory-inner-table.component.html',
|
||||||
styleUrls: ['./userstory-inner-table.component.css'],
|
styleUrls: ['./userstory-inner-table.component.css'],
|
||||||
})
|
})
|
||||||
export class UserstoryInnerTableComponent extends TableComponentBase<
|
export class UserstoryInnerTableComponent extends TableComponentBase<ScrumUserstory> {
|
||||||
ScrumUserstory
|
|
||||||
> {
|
|
||||||
public tasks: ScrumTask[] = [];
|
public tasks: ScrumTask[] = [];
|
||||||
public filterPriority: string | null = null;
|
public filterPriority: string | null = null;
|
||||||
public status: ScrumStatus[] = [];
|
public status: ScrumStatus[] = [];
|
||||||
@ -40,14 +38,14 @@ export class UserstoryInnerTableComponent extends TableComponentBase<
|
|||||||
protected route: ActivatedRoute
|
protected route: ActivatedRoute
|
||||||
) {
|
) {
|
||||||
super(route);
|
super(route);
|
||||||
|
|
||||||
backendService.getUserstories().subscribe((response) => {
|
backendService.getUserstories().subscribe((response) => {
|
||||||
if (response.status > 399) {
|
if (response.status > 399) {
|
||||||
alert('Fehler');
|
alert('Fehler');
|
||||||
} else {
|
} else {
|
||||||
this.items.push(...response.body);
|
this.items.push(...response.body);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
backendService.getTasks().subscribe((response) => {
|
backendService.getTasks().subscribe((response) => {
|
||||||
if (response.status > 399) {
|
if (response.status > 399) {
|
||||||
alert('Fehler');
|
alert('Fehler');
|
||||||
@ -86,11 +84,11 @@ export class UserstoryInnerTableComponent extends TableComponentBase<
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the number of related tasks of a given userstory.
|
* Returns the number of related tasks of a given userstory.
|
||||||
* The relation is defined by the userstoryid property of the task object and the id property of the userstory object.
|
* The relation is defined by the userstoryId property of the task object and the id property of the userstory object.
|
||||||
* @param userstory The userstory for which the number of related tasks gets calculated
|
* @param userstory The userstory for which the number of related tasks gets calculated
|
||||||
*/
|
*/
|
||||||
public getNumberOfTasks(userstory: ScrumUserstory) {
|
public getNumberOfTasks(userstory: ScrumUserstory) {
|
||||||
return this.tasks.filter((t) => t.userstoryid === userstory.id).length;
|
return this.tasks.filter((t) => t.userstoryId === userstory.id).length;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -116,6 +114,7 @@ export class UserstoryInnerTableComponent extends TableComponentBase<
|
|||||||
}
|
}
|
||||||
return category.title;
|
return category.title;
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion getters
|
//#endregion getters
|
||||||
|
|
||||||
//#region userstoryTableFunctions
|
//#region userstoryTableFunctions
|
||||||
@ -134,6 +133,7 @@ export class UserstoryInnerTableComponent extends TableComponentBase<
|
|||||||
this.items.splice(index, 1);
|
this.items.splice(index, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion userstoryTableFunctions
|
//#endregion userstoryTableFunctions
|
||||||
|
|
||||||
//#region sorters
|
//#region sorters
|
||||||
@ -152,18 +152,19 @@ export class UserstoryInnerTableComponent extends TableComponentBase<
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sorts the tabel's items by statusid
|
* Sorts the tabel's items by statusId
|
||||||
*/
|
*/
|
||||||
public sortByStatus() {
|
public sortByStatus() {
|
||||||
this.doNumericSort('statusid', (us) => us.statusid);
|
this.doNumericSort('statusId', (us) => us.statusId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sorts the tabel's items by categoryid
|
* Sorts the tabel's items by categoryId
|
||||||
*/
|
*/
|
||||||
public sortByCategory() {
|
public sortByCategory() {
|
||||||
this.doNumericSort('categoryid', (us) => us.categoryid);
|
this.doNumericSort('categoryId', (us) => us.categoryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion sorters
|
//#endregion sorters
|
||||||
|
|
||||||
//#region modals
|
//#region modals
|
||||||
@ -184,5 +185,6 @@ export class UserstoryInnerTableComponent extends TableComponentBase<
|
|||||||
}
|
}
|
||||||
modalRef.componentInstance.userstory = editUserstory;
|
modalRef.componentInstance.userstory = editUserstory;
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion modals
|
//#endregion modals
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
>
|
>
|
||||||
Gehört zu Story:
|
Gehört zu Story:
|
||||||
{{ getUserstoryTitleById(task.userstoryid) || "Keine" }}
|
{{ getUserstoryTitleById(task.userstoryId) || "Keine" }}
|
||||||
<i class="fa fa-caret-down"></i>
|
<i class="fa fa-caret-down"></i>
|
||||||
</span>
|
</span>
|
||||||
<div
|
<div
|
||||||
@ -30,7 +30,7 @@
|
|||||||
<option
|
<option
|
||||||
ngbDropdownItem
|
ngbDropdownItem
|
||||||
*ngFor="let userstory of userstories"
|
*ngFor="let userstory of userstories"
|
||||||
(click)="task.userstoryid = userstory.id"
|
(click)="task.userstoryId = userstory.id"
|
||||||
>{{ userstory.title }}</option
|
>{{ userstory.title }}</option
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@ -104,7 +104,7 @@
|
|||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
>
|
>
|
||||||
Status: {{ getStatusTitleById(task.statusid) }}
|
Status: {{ getStatusTitleById(task.statusId) }}
|
||||||
</button>
|
</button>
|
||||||
<div
|
<div
|
||||||
ngbDropdownMenu
|
ngbDropdownMenu
|
||||||
@ -116,7 +116,7 @@
|
|||||||
disable-auto-close
|
disable-auto-close
|
||||||
ngbDropdownItem
|
ngbDropdownItem
|
||||||
*ngFor="let status of allStatus"
|
*ngFor="let status of allStatus"
|
||||||
(click)="task.statusid = status.id"
|
(click)="task.statusId = status.id"
|
||||||
>{{ status.title }}</option
|
>{{ status.title }}</option
|
||||||
>
|
>
|
||||||
|
|
||||||
@ -145,7 +145,7 @@
|
|||||||
ngbDropdownItem
|
ngbDropdownItem
|
||||||
class="dropdown-item"
|
class="dropdown-item"
|
||||||
type="button"
|
type="button"
|
||||||
(click)="deleteStatus(task.statusid)"
|
(click)="deleteStatus(task.statusId)"
|
||||||
>
|
>
|
||||||
Status löschen
|
Status löschen
|
||||||
</button>
|
</button>
|
||||||
@ -157,7 +157,7 @@
|
|||||||
id="status"
|
id="status"
|
||||||
required
|
required
|
||||||
name="status"
|
name="status"
|
||||||
[(ngModel)]="task.statusid"
|
[(ngModel)]="task.statusId"
|
||||||
>
|
>
|
||||||
<option
|
<option
|
||||||
*ngFor="let status of allStatus"
|
*ngFor="let status of allStatus"
|
||||||
@ -178,7 +178,7 @@
|
|||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
>
|
>
|
||||||
Bearbeiter: {{ getAuthorById(task.assignedtoid) }}
|
Bearbeiter: {{ getAuthorById(task.assignedtoId) }}
|
||||||
</button>
|
</button>
|
||||||
<div
|
<div
|
||||||
ngbDropdownMenu
|
ngbDropdownMenu
|
||||||
@ -190,7 +190,7 @@
|
|||||||
disable-auto-close
|
disable-auto-close
|
||||||
ngbDropdownItem
|
ngbDropdownItem
|
||||||
*ngFor="let user of allUser"
|
*ngFor="let user of allUser"
|
||||||
(click)="task.assignedtoid = user.id"
|
(click)="task.assignedtoId = user.id"
|
||||||
>{{ user.name }}</option
|
>{{ user.name }}</option
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@ -201,7 +201,7 @@
|
|||||||
id="assignedto"
|
id="assignedto"
|
||||||
required
|
required
|
||||||
name="assignedto"
|
name="assignedto"
|
||||||
[(ngModel)]="task.assignedtoid"
|
[(ngModel)]="task.assignedtoId"
|
||||||
>
|
>
|
||||||
<option *ngFor="let user of allUser" [value]="user.id">{{
|
<option *ngFor="let user of allUser" [value]="user.id">{{
|
||||||
user.name
|
user.name
|
||||||
|
@ -48,7 +48,7 @@ export class TaskFormComponent implements OnInit {
|
|||||||
this.task = { title: '' };
|
this.task = { title: '' };
|
||||||
this.editing = false;
|
this.editing = false;
|
||||||
this.creating = false;
|
this.creating = false;
|
||||||
} else if (this.task.userstoryid) {
|
} else if (this.task.userstoryId) {
|
||||||
this.editing = true;
|
this.editing = true;
|
||||||
} else {
|
} else {
|
||||||
this.creating = true;
|
this.creating = true;
|
||||||
@ -84,11 +84,11 @@ export class TaskFormComponent implements OnInit {
|
|||||||
// Getting the userstory which is related to a task.
|
// Getting the userstory which is related to a task.
|
||||||
// The related story will be shown in popup window of a task.
|
// The related story will be shown in popup window of a task.
|
||||||
getRelatedStory() {
|
getRelatedStory() {
|
||||||
if (!this.task.userstoryid) {
|
if (!this.task.userstoryId) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
this.backendService
|
this.backendService
|
||||||
.getUserstory(this.task.userstoryid)
|
.getUserstory(this.task.userstoryId)
|
||||||
.subscribe((response) => {
|
.subscribe((response) => {
|
||||||
if (response.status > 399) {
|
if (response.status > 399) {
|
||||||
alert('Fehler');
|
alert('Fehler');
|
||||||
@ -145,7 +145,7 @@ export class TaskFormComponent implements OnInit {
|
|||||||
this.allStatus.splice(index, 1);
|
this.allStatus.splice(index, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.task.statusid = null;
|
this.task.statusId = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
>
|
>
|
||||||
Status: {{ getStatusTitleById(userstory.statusid) }}
|
Status: {{ getStatusTitleById(userstory.statusId) }}
|
||||||
</button>
|
</button>
|
||||||
<div
|
<div
|
||||||
ngbDropdownMenu
|
ngbDropdownMenu
|
||||||
@ -90,7 +90,7 @@
|
|||||||
disable-auto-close
|
disable-auto-close
|
||||||
ngbDropdownItem
|
ngbDropdownItem
|
||||||
*ngFor="let status of allStatus"
|
*ngFor="let status of allStatus"
|
||||||
(click)="userstory.statusid = status.id"
|
(click)="userstory.statusId = status.id"
|
||||||
>{{ status.title }}</option
|
>{{ status.title }}</option
|
||||||
>
|
>
|
||||||
|
|
||||||
@ -119,7 +119,7 @@
|
|||||||
ngbDropdownItem
|
ngbDropdownItem
|
||||||
class="dropdown-item"
|
class="dropdown-item"
|
||||||
type="button"
|
type="button"
|
||||||
(click)="deleteStatus(userstory.statusid)"
|
(click)="deleteStatus(userstory.statusId)"
|
||||||
>
|
>
|
||||||
Status löschen
|
Status löschen
|
||||||
</button>
|
</button>
|
||||||
@ -131,7 +131,7 @@
|
|||||||
id="prio"
|
id="prio"
|
||||||
required
|
required
|
||||||
name="prio"
|
name="prio"
|
||||||
[(ngModel)]="userstory.statusid"
|
[(ngModel)]="userstory.statusId"
|
||||||
>
|
>
|
||||||
<option
|
<option
|
||||||
*ngFor="let status of allStatus"
|
*ngFor="let status of allStatus"
|
||||||
@ -152,7 +152,7 @@
|
|||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
>
|
>
|
||||||
Kategorie: {{ getCategoryById(userstory.categoryid) }}
|
Kategorie: {{ getCategoryById(userstory.categoryId) }}
|
||||||
</button>
|
</button>
|
||||||
<div
|
<div
|
||||||
ngbDropdownMenu
|
ngbDropdownMenu
|
||||||
@ -164,7 +164,7 @@
|
|||||||
disable-auto-close
|
disable-auto-close
|
||||||
ngbDropdownItem
|
ngbDropdownItem
|
||||||
*ngFor="let category of allCategories"
|
*ngFor="let category of allCategories"
|
||||||
(click)="userstory.categoryid = category.id"
|
(click)="userstory.categoryId = category.id"
|
||||||
>{{ category.title }}</option
|
>{{ category.title }}</option
|
||||||
>
|
>
|
||||||
|
|
||||||
@ -193,7 +193,7 @@
|
|||||||
ngbDropdownItem
|
ngbDropdownItem
|
||||||
class="dropdown-item"
|
class="dropdown-item"
|
||||||
type="button"
|
type="button"
|
||||||
(click)="deleteCategory(userstory.categoryid)"
|
(click)="deleteCategory(userstory.categoryId)"
|
||||||
>
|
>
|
||||||
Kategorie löschen
|
Kategorie löschen
|
||||||
</button>
|
</button>
|
||||||
@ -205,7 +205,7 @@
|
|||||||
id="prio"
|
id="prio"
|
||||||
required
|
required
|
||||||
name="prio"
|
name="prio"
|
||||||
[(ngModel)]="userstory.categoryid"
|
[(ngModel)]="userstory.categoryId"
|
||||||
>
|
>
|
||||||
<option
|
<option
|
||||||
*ngFor="let category of allCategories"
|
*ngFor="let category of allCategories"
|
||||||
@ -226,7 +226,7 @@
|
|||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
>
|
>
|
||||||
Autor: {{ getAuthorById(userstory.createdbyid) }}
|
Autor: {{ getAuthorById(userstory.createdbyId) }}
|
||||||
</button>
|
</button>
|
||||||
<div
|
<div
|
||||||
ngbDropdownMenu
|
ngbDropdownMenu
|
||||||
@ -238,7 +238,7 @@
|
|||||||
disable-auto-close
|
disable-auto-close
|
||||||
ngbDropdownItem
|
ngbDropdownItem
|
||||||
*ngFor="let user of allUser"
|
*ngFor="let user of allUser"
|
||||||
(click)="userstory.createdbyid = user.id"
|
(click)="userstory.createdbyId = user.id"
|
||||||
>{{ user.name }}</option
|
>{{ user.name }}</option
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@ -249,7 +249,7 @@
|
|||||||
id="prio"
|
id="prio"
|
||||||
required
|
required
|
||||||
name="prio"
|
name="prio"
|
||||||
[(ngModel)]="userstory.createdbyid"
|
[(ngModel)]="userstory.createdbyId"
|
||||||
>
|
>
|
||||||
<option *ngFor="let user of allUser" [value]="user.id">{{
|
<option *ngFor="let user of allUser" [value]="user.id">{{
|
||||||
user.name
|
user.name
|
||||||
|
@ -115,7 +115,7 @@ export class UserstoryFormComponent implements OnInit {
|
|||||||
this.allStatus.splice(index, 1);
|
this.allStatus.splice(index, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.userstory.statusid = null;
|
this.userstory.statusId = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -195,7 +195,7 @@ export class UserstoryFormComponent implements OnInit {
|
|||||||
this.allCategories.splice(index, 1);
|
this.allCategories.splice(index, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.userstory.categoryid = null;
|
this.userstory.categoryId = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Shows the before choosen category in the category-field in the popup window.
|
// Shows the before choosen category in the category-field in the popup window.
|
||||||
|
@ -348,12 +348,12 @@ export interface ScrumTask {
|
|||||||
id?: number;
|
id?: number;
|
||||||
title: string;
|
title: string;
|
||||||
content?: string;
|
content?: string;
|
||||||
statusid?: number;
|
statusId?: number;
|
||||||
categoryid?: number;
|
categoryId?: number;
|
||||||
assignedtoid?: number;
|
assignedtoId?: number;
|
||||||
sprintid?: number;
|
sprintId?: number;
|
||||||
projectid?: number;
|
projectId?: number;
|
||||||
userstoryid?: number;
|
userstoryId?: number;
|
||||||
priority?: Priority;
|
priority?: Priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -367,11 +367,11 @@ export interface ScrumUserstory {
|
|||||||
title: string;
|
title: string;
|
||||||
content?: string;
|
content?: string;
|
||||||
priority?: Priority;
|
priority?: Priority;
|
||||||
statusid?: number;
|
statusId?: number;
|
||||||
categoryid?: number;
|
categoryId?: number;
|
||||||
sprintid?: number;
|
sprintId?: number;
|
||||||
createdbyid?: number;
|
createdbyId?: number;
|
||||||
projectid?: number;
|
projectId?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -386,7 +386,7 @@ export interface ScrumSprint{
|
|||||||
description?: string;
|
description?: string;
|
||||||
startDate: string;
|
startDate: string;
|
||||||
endDate: string;
|
endDate: string;
|
||||||
projectid?: number;
|
projectId?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user