Cacher les points de tâche

This commit is contained in:
Vincent Vandemeulebrouck
2022-01-25 22:06:10 +01:00
parent 6095367251
commit 1eefa62495
3 changed files with 12 additions and 6 deletions

View File

@ -404,10 +404,12 @@ export class RdDItem extends Item {
`<b>Compétence</b>: ${tplData.competence}`,
`<b>Périodicité</b>: ${tplData.periodicite}`,
`<b>Fatigue</b>: ${tplData.fatigue}`,
`<b>Difficulté</b>: ${tplData.difficulte}`,
`<b>Points de Tâche</b>: ${tplData.points_de_tache}`,
`<b>Points de Tâche atteints</b>: ${tplData.points_de_tache_courant}`
]
`<b>Difficulté</b>: ${tplData.difficulte}`
].concat([
tplData.cacher_points_de_tache ? [] :`<b>Points de Tâche</b>: ${tplData.points_de_tache}`
]).concat([
`<b>Points de Tâche atteints</b>: ${tplData.points_de_tache_courant}`]
);
return properties;
}
/* -------------------------------------------- */