diff --git a/src/app/register2/components/form-current-employment/form-current-employment.component.html b/src/app/register2/components/form-current-employment/form-current-employment.component.html index bb8c59505e..87b38031f4 100644 --- a/src/app/register2/components/form-current-employment/form-current-employment.component.html +++ b/src/app/register2/components/form-current-employment/form-current-employment.component.html @@ -113,8 +113,7 @@

*ngIf="selectedOrganizationFromDatabase && displayOrganizationHint" > {{ selectedOrganizationFromDatabase.value }}, - {{ selectedOrganizationFromDatabase.city }} - , {{ selectedOrganizationFromDatabase.country }} diff --git a/src/app/register2/components/step-c/step-c.component.ts b/src/app/register2/components/step-c/step-c.component.ts index a32fb53ab2..4060b11ccd 100644 --- a/src/app/register2/components/step-c/step-c.component.ts +++ b/src/app/register2/components/step-c/step-c.component.ts @@ -4,7 +4,7 @@ import { ReactivationLocal } from '../../../types/reactivation.local' import { BaseStepDirective } from '../BaseStep' @Component({ - selector: 'app-step-ct', + selector: 'app-step-c', templateUrl: './step-c.component.html', styleUrls: [ './step-c.component.scss', diff --git a/src/app/register2/components/step-c2/step-c2.component.html b/src/app/register2/components/step-c2/step-c2.component.html index 9d6e987733..275b224da2 100644 --- a/src/app/register2/components/step-c2/step-c2.component.html +++ b/src/app/register2/components/step-c2/step-c2.component.html @@ -72,7 +72,7 @@

id="step-c-back-button" (click)="optionalNextStep()" > - + Skip this step without adding an affiliation diff --git a/src/app/register2/components/step-c2/step-c2.component.ts b/src/app/register2/components/step-c2/step-c2.component.ts index 60190ec2ec..76f28bdae3 100644 --- a/src/app/register2/components/step-c2/step-c2.component.ts +++ b/src/app/register2/components/step-c2/step-c2.component.ts @@ -2,6 +2,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core' import { ReactivationLocal } from '../../../types/reactivation.local' import { BaseStepDirective } from '../BaseStep' +import { FormBuilder, FormGroup } from '@angular/forms' @Component({ selector: 'app-step-c2', @@ -18,11 +19,23 @@ export class StepC2Component extends BaseStepDirective { nextButtonWasClicked: boolean @Output() formGroupStepC2OptionalChange = new EventEmitter() - constructor() { + constructor(private _formBuilder: FormBuilder) { super() } optionalNextStep() { + this.formGroup.setValue({ + affiliations: { + organization: '', + departmentName: '', + roleTitle: '', + startDateGroup: { + startDateMonth: '', + startDateYear: '', + }, + }, + }) + this.formGroupStepC2OptionalChange.emit(true) this.nextButtonWasClicked = true } diff --git a/src/app/register2/pages/register/register2.component.html b/src/app/register2/pages/register/register2.component.html index 92997ab286..4b753714ef 100644 --- a/src/app/register2/pages/register/register2.component.html +++ b/src/app/register2/pages/register/register2.component.html @@ -35,9 +35,6 @@ [stepControl]="FormGroupStepC2" [optional]="formGroupStepC2Optional" > - Visibility and terms + + Visibility and terms + + Visibility and terms