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

View file

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