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

composant CalculatorResultsComponent : correction d'un bug d'affichage des...

composant CalculatorResultsComponent : correction d'un bug d'affichage des paramètres sans label ou unité
parent 427c0a2f
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,12 @@ export class CalculatorResultsComponent {
}
private paramLabel(p: NgParameter): string {
return p.symbol + ": " + p.label + " (" + p.unit + ")";
let res = p.symbol;
if (p.label != undefined && p.label != "")
res += ": " + p.label;
if (p.unit != undefined && p.unit != "")
res += " (" + p.unit + ")";
return res;
}
// public show() {
......
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