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;
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
project: number;
|
||||
project?: number;
|
||||
}
|
||||
|
||||
export interface ScrumCategory {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user