Fix: log erreur TMR en mode visu

En mode visualisation, les informations du personnage ne sont
pas affichées
This commit is contained in:
Vincent Vandemeulebrouck 2024-03-09 19:38:53 +01:00
parent 3b269b2baa
commit bc169d931b
2 changed files with 42 additions and 44 deletions

View File

@ -298,11 +298,10 @@ export class RdDTMRDialog extends Dialog {
/* -------------------------------------------- */
async updateValuesDisplay() {
if (!this.rendered) {
if (this.viewOnly || !this.rendered) {
return;
}
const coord = this._getCoordActor();
HtmlUtility.showControlWhen(this.html.find(".lire-signe-draconique"), this.actor.isResonanceSigneDraconique(coord));
let ptsreve = document.getElementById("tmr-pointsreve-value");

View File

@ -62,8 +62,7 @@
<span id="tmr-fatigue-table">{{{fatigue.html}}}</span>
</div>
{{/if}}
<div class="flex-group-center flex-grow">
</div>
<div class="flex-group-center flex-grow"></div>
</div>
</div>
</form>