Skip to content

Commit

Permalink
fix: enable button in DisplayTable for chat messages (#1508)
Browse files Browse the repository at this point in the history
Small bug fix to allow button to work for DisplayTable in chat messages
  • Loading branch information
marvin9257 authored Dec 9, 2023
1 parent 1566b55 commit 271c922
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module/hooks/chatCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ import TwodsixActor from "../entities/TwodsixActor";
import { TwodsixDiceRoll } from "../utils/TwodsixDiceRoll";
import { TwodsixRollSettings } from "../utils/TwodsixRollSettings";
import { TWODSIX } from "../config";
import { handleSkillRoll } from "../utils/enrichers";
import { handleSkillRoll, handleTableRoll } from "../utils/enrichers";

Hooks.on("renderChatLog", (_app, html, _data) => {
html.on("click", ".card-buttons button", onChatCardAction);
html.on("click", ".item-name", onChatCardToggleContent);
html.on("click", ".skill-roll", handleSkillRoll);
html.on("click", ".table-roll", handleTableRoll);
});
Hooks.on("renderChatPopout", (_app, html, _data) => {
html.on("click", ".card-buttons button", onChatCardAction);
html.on("click", ".item-name", onChatCardToggleContent);
html.on("click", ".skill-roll", handleSkillRoll);
html.on("click", ".table-roll", handleTableRoll);
});

/* -------------------------------------------- */
Expand Down

0 comments on commit 271c922

Please sign in to comment.