diff --git a/module/actor-vehicule-sheet.js b/module/actor-vehicule-sheet.js index b4a33c37..1d39f106 100644 --- a/module/actor-vehicule-sheet.js +++ b/module/actor-vehicule-sheet.js @@ -112,6 +112,19 @@ export class RdDActorVehiculeSheet extends ActorSheet { const li = RdDSheetUtility.getEventElement(event); RdDUtility.confirmerSuppression(this, li); }); + html.find('.item-vendre').click(async event => { + const item = RdDSheetUtility.getItem(event, this.actor); + item?.proposerVente(); + }); + html.find('.item-montrer').click(async event => { + const item = RdDSheetUtility.getItem(event, this.actor); + item?.postItem(); + }); + + html.find('.item-action').click(async event => { + const item = RdDSheetUtility.getItem(event, this.actor); + this.actor.actionItem(item); + }); html.find('.creer-un-objet').click(async event => { RdDUtility.selectObjetType(this);