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

ticket #57 : ajout d'une méthode signalant si le formaulaire courant à des...

ticket #57 : ajout d'une méthode signalant si le formaulaire courant à des résultats (FormulaireService.currentFormHasResults())
parent 3c243777
No related branches found
No related tags found
No related merge requests found
......@@ -247,4 +247,16 @@ export class FormulaireService extends Observable {
});
}
}
private get currentForm(): FormulaireDefinition {
return this.getFormulaireFromId(this._currentFormId);
}
public get currentFormHasResults(): boolean {
const form = this.currentForm;
if (form != undefined)
return form.hasResults;
return false;
}
}
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