RC-82 | Name Input
This commit is contained in:
parent
4b423a0729
commit
d0374880bc
4 changed files with 46 additions and 2 deletions
|
|
@ -40,6 +40,8 @@ export class AllItemSheetV1 extends GenericAppMixin(HandlebarsApplicationMixin(I
|
|||
ctx = await super._preparePartContext(partId, ctx, opts);
|
||||
ctx.item = this.document;
|
||||
|
||||
ctx.formFields = this.document.system.getFormFields(ctx);
|
||||
|
||||
Logger.debug(`Context:`, ctx);
|
||||
return ctx;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ export class WeaponData extends foundry.abstract.TypeDataModel {
|
|||
// #endregion
|
||||
|
||||
// #region Sheet Data
|
||||
get formFields() {
|
||||
getFormFields(ctx) {
|
||||
const fields = [
|
||||
{ type: `set`, label: `Traits` },
|
||||
{ type: `integer`, label: `Short Range` },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue