Skip to content
Snippets Groups Projects
Commit 3761c39a authored by François Grand's avatar François Grand
Browse files

refactor: remove unused validity signals

refs #544
parent 27d0fa05
No related branches found
No related tags found
1 merge request!144Resolve "PréBarrages: les changements de couleur du schéma ne sont pas instantanées"
......@@ -12,13 +12,11 @@
</param-computed>
<!-- composant pour gérer le cas "paramètre à varier" (min-max/liste de valeurs) -->
<param-values *ngIf="isRadioVarChecked" [title]="title" [param]="param" (change)="onInputChange($event)"
(valid)=onParamValuesValid($event)>
<param-values *ngIf="isRadioVarChecked" [title]="title" [param]="param" (change)="onInputChange($event)">
</param-values>
<!-- composant pour gérer le cas "paramètre lié" -->
<param-link *ngIf="isRadioLinkChecked" [title]="title" [param]="param" (change)="onInputChange($event)"
(valid)=onParamValuesValid($event)>
<param-link *ngIf="isRadioLinkChecked" [title]="title" [param]="param" (change)="onInputChange($event)">
</param-link>
</div>
......
......@@ -312,14 +312,6 @@ export class ParamFieldLineComponent implements OnChanges {
}
}
/**
* réception d'un événement de validité de ParamValuesComponent
*/
public onParamValuesValid(event: boolean) {
this._isRangeValid = event;
this.emitValidity();
}
public ngOnChanges() {
this._ngParamInputComponent.model = this.param;
this._ngParamInputComponent.showError = this.isRadioFixChecked;
......
......@@ -22,9 +22,6 @@ export class ParamLinkComponent implements OnChanges, Observer, OnDestroy {
@Input()
public title: string;
@Output()
public valid: EventEmitter<boolean>;
/**
* événement signalant un changement de valeur du modèle
* @TODO l'utiliser aussi pour le changement de validité à
......@@ -83,7 +80,6 @@ export class ParamLinkComponent implements OnChanges, Observer, OnDestroy {
private intlService: I18nService,
private formService: FormulaireService
) {
this.valid = new EventEmitter();
this.formService.addObserver(this);
}
......
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