Add the combined sheet to make sure that it works in practice and make the changes to make it work
This commit is contained in:
parent
5b903f7e74
commit
7271323a75
6 changed files with 90 additions and 2 deletions
|
|
@ -42,7 +42,10 @@ export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixi
|
|||
// #region Lifecycle
|
||||
async _onRender(context, options) {
|
||||
await super._onRender(context, options);
|
||||
HeroSummaryCardV1._onRender.bind(this)(context, options);
|
||||
};
|
||||
|
||||
static async _onRender() {
|
||||
const itemMenuOptions = [
|
||||
{
|
||||
name: `Edit`,
|
||||
|
|
@ -63,7 +66,7 @@ export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixi
|
|||
];
|
||||
if (itemMenuOptions.length) {
|
||||
new ContextMenu(this.element, `.weapon-ctx-menu`, itemMenuOptions, { jQuery: false, fixed: true });
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
async _preparePartContext(partId, ctx, opts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue