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() { async updateValuesDisplay() {
if (!this.rendered) { if (this.viewOnly || !this.rendered) {
return; return;
} }
const coord = this._getCoordActor(); const coord = this._getCoordActor();
HtmlUtility.showControlWhen(this.html.find(".lire-signe-draconique"), this.actor.isResonanceSigneDraconique(coord)); HtmlUtility.showControlWhen(this.html.find(".lire-signe-draconique"), this.actor.isResonanceSigneDraconique(coord));
let ptsreve = document.getElementById("tmr-pointsreve-value"); let ptsreve = document.getElementById("tmr-pointsreve-value");

View File

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