Merge branch 'feature/sprint-form' of https://git.informatik.fh-nuernberg.de/scrum-taskboard/frontend into feature/sprint-form
This commit is contained in:
commit
bd26dde79c
@ -235,7 +235,7 @@ export interface ScrumSprint{
|
|||||||
description?: string;
|
description?: string;
|
||||||
startDate: Date;
|
startDate: Date;
|
||||||
endDate: Date;
|
endDate: Date;
|
||||||
project: number;
|
project?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ScrumCategory {
|
export interface ScrumCategory {
|
||||||
|
@ -26,15 +26,15 @@ export class SprintFormComponent implements OnInit {
|
|||||||
|
|
||||||
constructor(private backendService: BackendService, private activeModalService: NgbActiveModal) {}
|
constructor(private backendService: BackendService, private activeModalService: NgbActiveModal) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
if (this.sprint === null || this.sprint === undefined) {
|
if (this.sprint === null || this.sprint === undefined) {
|
||||||
this.sprint = { title: '', startDate: new Date(), endDate: new Date(), project: 0 }; //project id: static counter?
|
this.sprint = { title: '', startDate: new Date(), endDate: new Date()}; //project id missing...
|
||||||
this.editing = false;
|
this.editing = false;
|
||||||
} else {
|
} else {
|
||||||
this.editing = true;
|
this.editing = true;
|
||||||
}
|
}
|
||||||
document.getElementById('titleField').focus();
|
document.getElementById('titleField').focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
if (this.editing) {
|
if (this.editing) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user