Merge branch 'feature/sprint-form' of https://git.informatik.fh-nuernberg.de/scrum-taskboard/frontend into feature/sprint-form

This commit is contained in:
Michael 2020-06-30 10:31:07 +02:00
commit bd26dde79c
2 changed files with 10 additions and 10 deletions

View File

@ -235,7 +235,7 @@ export interface ScrumSprint{
description?: string;
startDate: Date;
endDate: Date;
project: number;
project?: number;
}
export interface ScrumCategory {

View File

@ -26,15 +26,15 @@ export class SprintFormComponent implements OnInit {
constructor(private backendService: BackendService, private activeModalService: NgbActiveModal) {}
ngOnInit(): void {
if (this.sprint === null || this.sprint === undefined) {
this.sprint = { title: '', startDate: new Date(), endDate: new Date(), project: 0 }; //project id: static counter?
this.editing = false;
} else {
this.editing = true;
}
document.getElementById('titleField').focus();
}
ngOnInit(): void {
if (this.sprint === null || this.sprint === undefined) {
this.sprint = { title: '', startDate: new Date(), endDate: new Date()}; //project id missing...
this.editing = false;
} else {
this.editing = true;
}
document.getElementById('titleField').focus();
}
onSubmit() {
if (this.editing) {