Post to chat pour les acteurs

This commit is contained in:
Vincent Vandemeulebrouck
2022-12-29 02:25:45 +01:00
parent 26808d7b49
commit c79298b60a
10 changed files with 76 additions and 24 deletions

View File

@ -66,7 +66,7 @@ export class RdDItemSheet extends ItemSheet {
buttons.unshift({
class: "montrer",
icon: "fas fa-comment",
onclick: ev => this.item.postItem()
onclick: ev => this.item.postItemToChat()
});
return buttons
}
@ -211,7 +211,7 @@ export class RdDItemSheet extends ItemSheet {
this.html.find('.item-edit').click(async event => RdDSheetUtility.getItem(event, this.actor)?.sheet.render(true));
this.html.find('.item-delete').click(async event => RdDUtility.confirmActorItemDelete(this, RdDSheetUtility.getItem(event, this.actor)));
this.html.find('.item-vendre').click(async event => RdDSheetUtility.getItem(event, this.actor)?.proposerVente());
this.html.find('.item-montrer').click(async event => RdDSheetUtility.getItem(event, this.actor)?.postItem());
this.html.find('.item-montrer').click(async event => RdDSheetUtility.getItem(event, this.actor)?.postItemToChat());
this.html.find('.item-action').click(async event => RdDSheetUtility.getItem(event, this.actor)?.actionPrincipale(this.actor, async () => this.render(true)));
}