Regrouper vue détaillée avec dévérouiller

This commit is contained in:
Vincent Vandemeulebrouck
2022-09-27 22:38:49 +02:00
parent 5d36ea9e0c
commit 322506250b
4 changed files with 25 additions and 33 deletions

View File

@ -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) => {