Slight cleanup
This commit is contained in:
parent
605bdb61ae
commit
eb6d7fee94
2 changed files with 3 additions and 6 deletions
|
|
@ -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`: {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue