diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 0002f7f3..601df81e 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -29,7 +29,6 @@ export class RdDActorSheet extends ActorSheet { width: 640, tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "carac" }], dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }], - editCaracComp: false, showCompNiveauBase: false, vueDetaillee: false }); @@ -387,7 +386,7 @@ export class RdDActorSheet extends ActorSheet { this.actor.updateCompetenceStress(RdDSheetUtility.getItemId(event)); }); - if (this.options.editCaracComp) { + if (this.options.vueDetaillee) { // On carac change html.find('.carac-value').change(async event => { let caracName = event.currentTarget.name.replace(".value", "").replace("system.carac.", ""); @@ -424,10 +423,6 @@ export class RdDActorSheet extends ActorSheet { this.options.showCompNiveauBase = !this.options.showCompNiveauBase; this.render(true); }); - html.find('.lock-unlock-sheet').click(async event => { - this.options.editCaracComp = !this.options.editCaracComp; - this.render(true); - }); html.find('.recherche') .each((index, field) => { diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 896e1abf..56354e75 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -93,9 +93,10 @@ {{!-- Carac Tab --}}