funky-framadate-front/src/app/features/administration/form/steps/step-five/step-five.component.ts

32 lines
883 B
TypeScript
Raw Normal View History

2021-11-07 14:52:49 +01:00
import { Component, Input, OnInit } from '@angular/core';
import { UntypedFormGroup } from '@angular/forms';
2021-11-07 14:52:49 +01:00
import { PollService } from '../../../../../core/services/poll.service';
2021-11-22 10:15:11 +01:00
import { environment } from '../../../../../../environments/environment';
2021-11-07 14:52:49 +01:00
@Component({
selector: 'app-step-five',
templateUrl: './step-five.component.html',
styleUrls: ['./step-five.component.scss'],
})
export class StepFiveComponent implements OnInit {
@Input() step_max: any;
@Input() public form: UntypedFormGroup;
2021-11-07 14:52:49 +01:00
poll: any;
public environment = environment;
2021-11-22 10:15:11 +01:00
advancedDisplayEnabled = environment.advanced_options_display;
2021-11-16 16:16:30 +01:00
constructor(public pollService: PollService) {
this.pollService.step_current = 5;
}
2021-11-07 14:52:49 +01:00
ngOnInit(): void {}
2021-11-07 21:08:38 +01:00
askInitFormDefault() {
if (window.confirm('réinitialiser le formulaire ?')) {
this.pollService.askInitFormDefault();
}
}
2021-11-07 14:52:49 +01:00
automaticSlug() {}
}