Skip to content
Snippets Groups Projects
Commit 38151d55 authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

adapt appointment choice

parent efc52408
No related branches found
No related tags found
1 merge request!949change(profile): prevent rdv choice if user has no personal offer
Pipeline #116874 passed
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { Job } from '../../../models/job.model';
@Component({
selector: 'app-appointment-choice',
......@@ -7,13 +6,12 @@ import { Job } from '../../../models/job.model';
styleUrls: ['./appointment-choice.component.scss'],
})
export class AppointmentChoiceComponent {
@Input() selectedRdvChoice: boolean;
@Output() validateForm = new EventEmitter<Job>();
@Input() selectedRdvChoice: boolean | null;
@Output() validateForm = new EventEmitter<any>();
@Output() rdvChoice = new EventEmitter<boolean>();
public onRdvChoiceChange(value: boolean): void {
this.selectedRdvChoice = value;
this.rdvChoice.emit(this.selectedRdvChoice);
this.rdvChoice.emit(value);
this.validateForm.emit();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment