Skip to content

Commit

Permalink
lmendoza/sep-24
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Sep 25, 2024
1 parent 9803bd9 commit 75babd8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
12 changes: 4 additions & 8 deletions src/app/register2/components/step-b/step-b.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,17 @@ export class StepBComponent extends BaseStepDirective implements OnInit {
@Input() personalData
@Input() reactivation: ReactivationLocal

constructor(
private _registerStateService: RegisterStateService,
private _registerObservabilityService: RegisterObservabilityService
) {
constructor(private _registerStateService: RegisterStateService) {
super()
}
ngOnInit(): void {
}
ngOnInit(): void {}

nextButtonWasClicked = false

nextButton2() {
this._registerStateService.registerStepperButtonClicked('b', 'next');
this._registerStateService.registerStepperButtonClicked('b', 'next')
}
backButton() {
this._registerStateService.registerStepperButtonClicked('b', 'back');
this._registerStateService.registerStepperButtonClicked('b', 'back')
}
}
8 changes: 2 additions & 6 deletions src/app/register2/components/step-c/step-c.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ export class StepCComponent extends BaseStepDirective implements OnInit {
@Input() loading
@Input() reactivation: ReactivationLocal

constructor(
private _registrationStateService: RegisterStateService,
private _registerObservabilityService: RegisterObservabilityService
) {
constructor(private _registrationStateService: RegisterStateService) {
super()
}
ngOnInit(): void {
}
ngOnInit(): void {}

nextButton2() {
this._registrationStateService.registerStepperButtonClicked('c', 'next')
Expand Down
19 changes: 13 additions & 6 deletions src/app/register2/components/step-c2/step-c2.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,23 @@ export class StepC2Component extends BaseStepDirective implements OnInit {
nextButtonWasClicked: boolean
@Output() formGroupStepC2OptionalChange = new EventEmitter<boolean>()

constructor(
private _registrationStateService: RegisterStateService,
private _registerObservabilityService: RegisterObservabilityService
) {
constructor(private _registrationStateService: RegisterStateService) {
super()
}
ngOnInit(): void {
}
ngOnInit(): void {}

optionalNextStep() {
this.formGroup.setValue({
affiliations: {
organization: '',
departmentName: '',
roleTitle: '',
startDateGroup: {
startDateMonth: '',
startDateYear: '',
},
},
})
this.formGroupStepC2OptionalChange.emit(true)
this._registrationStateService.registerStepperButtonClicked('c2', 'skip')
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/register2/pages/register/register2.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class Register2Component implements OnInit, AfterViewInit {
ERROR_REPORT.REGISTER
)
this._registerObservabilityService.reportRegisterErrorEvent(
'register-validate-fail',
'register-validate',
{
errors: validator.errors,
}
Expand Down

0 comments on commit 75babd8

Please sign in to comment.