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; description?: string;
startDate: Date; startDate: Date;
endDate: Date; endDate: Date;
project: number; project?: number;
} }
export interface ScrumCategory { export interface ScrumCategory {

View File

@ -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) {