Slight cleanup

This commit is contained in:
Oliver-Akins 2025-02-11 22:53:52 -07:00
parent 605bdb61ae
commit eb6d7fee94
2 changed files with 3 additions and 6 deletions

View file

@ -23,9 +23,7 @@ export class CombinedHeroSheet extends GenericAppMixin(HandlebarsApplicationMixi
window: { window: {
resizable: false, resizable: false,
}, },
actions: { actions: {},
editItem: (_event, target) => HeroSummaryCardV1._editItem(target),
},
form: { form: {
submitOnChange: true, submitOnChange: true,
closeOnSubmit: false, closeOnSubmit: false,
@ -83,7 +81,6 @@ export class CombinedHeroSheet extends GenericAppMixin(HandlebarsApplicationMixi
async _preparePartContext(partId, ctx, opts) { async _preparePartContext(partId, ctx, opts) {
ctx = await super._preparePartContext(partId, ctx, opts); ctx = await super._preparePartContext(partId, ctx, opts);
ctx.actor = this.document; ctx.actor = this.document;
Logger.debug(`partID:`, partId);
switch (partId) { switch (partId) {
case `summary`: { case `summary`: {

View file

@ -15,7 +15,7 @@ export function GenericAppMixin(HandlebarsApp) {
`ripcrypt`, `ripcrypt`,
], ],
actions: { actions: {
roll: this._rollDice, roll: this.#rollDice,
editItem: (_event, target) => editItemFromElement(target), editItem: (_event, target) => editItemFromElement(target),
deleteItem: (_event, target) => deleteItemFromElement(target), deleteItem: (_event, target) => deleteItemFromElement(target),
openRichEditor: this.#openRichEditor, openRichEditor: this.#openRichEditor,
@ -60,7 +60,7 @@ export function GenericAppMixin(HandlebarsApp) {
// #region Actions // #region Actions
/** @this {GenericRipCryptApp} */ /** @this {GenericRipCryptApp} */
static async _rollDice(_event, target) { static async #rollDice(_event, target) {
const data = target.dataset; const data = target.dataset;
const diceCount = parseInt(data.diceCount); const diceCount = parseInt(data.diceCount);
const flavor = data.flavor; const flavor = data.flavor;