forked from tykayn/funky-framadate-front
new poll from local form of the pollService
This commit is contained in:
parent
cb971a5421
commit
d68ba7ac2a
@ -644,7 +644,6 @@ export class PollService implements Resolve<Poll> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @description convert to API version 1 data transition object
|
* @description convert to API version 1 data transition object
|
||||||
* @param form
|
|
||||||
*/
|
*/
|
||||||
newPollFromForm(): Poll {
|
newPollFromForm(): Poll {
|
||||||
let form = this.form;
|
let form = this.form;
|
||||||
|
@ -20,7 +20,7 @@ export class StepFourComponent implements OnInit {
|
|||||||
ngOnInit(): void {}
|
ngOnInit(): void {}
|
||||||
|
|
||||||
createPoll() {
|
createPoll() {
|
||||||
let apiData = this.pollService.newPollFromForm(this.pollService._poll);
|
let apiData = this.pollService.newPollFromForm();
|
||||||
this.apiService.createPoll(apiData);
|
this.apiService.createPoll(apiData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user