|
|
|
@ -65,8 +65,12 @@ export class NewSeasonDialogComponent { |
|
|
|
submit(): void { |
|
|
|
let title = this.title.value != undefined ? this.title.value : ""; |
|
|
|
let subTitle = this.subTitle.value != undefined ? this.subTitle.value : ""; |
|
|
|
let startingDate = this.startingDate.value != undefined ? this.startingDate.value : new Date(Date.now()); |
|
|
|
let startingDate = this.startingDate.value != undefined ? this.startingDate.value : ""; |
|
|
|
|
|
|
|
//this.seasonsService.create();
|
|
|
|
let _date = new Date(startingDate); |
|
|
|
|
|
|
|
this.seasonsService.create(title, subTitle, _date).subscribe(data => { |
|
|
|
console.log(data); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|