Skip to content
Snippets Groups Projects
Commit fe895170 authored by francois.grand's avatar francois.grand
Browse files

closes #57

parent f19ccff6
No related branches found
No related tags found
No related merge requests found
<div class="row">
<!-- input de saisie de la valeur -->
<div class="col-12 col-sm-6 col-xl-9 pt-3">
<div [ngClass]="(formHasResults) ? 'col-6 pt-3':'col-6 col-xl-9 pt-3'">
<ngparam-input [inputDisabled]="isInputDisabled" [param]="_param" [title]="title" (onChange)="onInputChange($event)"></ngparam-input>
</div>
......
......@@ -3,6 +3,7 @@ import { Component, ViewChild, Input, Output, EventEmitter, AfterViewChecked } f
import { InternationalisationService } from "../../services/internationalisation/internationalisation.service";
import { NgParameter, ParamRadioConfig } from "../../formulaire/ngparam";
import { NgParamInputComponent } from "../ngparam-input/ngparam-input.component";
import { FormulaireService } from "../../services/formulaire/formulaire.service";
@Component({
selector: "param-field-line",
......@@ -44,7 +45,9 @@ export class ParamFieldLineComponent implements AfterViewChecked {
*/
private _isRangeValid: boolean = true;
constructor(private intlService: InternationalisationService) {
constructor(private intlService: InternationalisationService,
private formulaireService: FormulaireService
) {
this.onValid = new EventEmitter();
}
......@@ -257,4 +260,8 @@ export class ParamFieldLineComponent implements AfterViewChecked {
public ngAfterViewChecked() {
this._ngParamInputComponent.showError = this.isRadioFixChecked;
}
private get formHasResults(): boolean {
return this.formulaireService.currentFormHasResults;
}
}
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