From 8ea596544b6fc1b86503a2209f4c49ae1f927fc6 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Tue, 1 Jul 2025 12:14:47 +0200 Subject: [PATCH] Fixed Notes enriched path and adversary-settings form id --- .../applications/sheets/applications/adversary-settings.mjs | 6 +----- templates/sheets/actors/adversary/notes.hbs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/module/applications/sheets/applications/adversary-settings.mjs b/module/applications/sheets/applications/adversary-settings.mjs index d0551939..95526b09 100644 --- a/module/applications/sheets/applications/adversary-settings.mjs +++ b/module/applications/sheets/applications/adversary-settings.mjs @@ -1,5 +1,4 @@ import DHActionConfig from '../../config/Action.mjs'; -import DaggerheartSheet from '../daggerheart-sheet.mjs'; import DHBaseItemSheet from '../api/base-item.mjs'; import { actionsTypes } from '../../../data/_module.mjs'; @@ -18,7 +17,6 @@ export default class DHAdversarySettings extends HandlebarsApplicationMixin(Appl static DEFAULT_OPTIONS = { tag: 'form', - id: 'daggerheart-action', classes: ['daggerheart', 'dh-style', 'dialog', 'adversary-settings'], window: { icon: 'fa-solid fa-wrench', @@ -104,9 +102,7 @@ export default class DHAdversarySettings extends HandlebarsApplicationMixin(Appl context.tabs = this._getTabs(this.constructor.TABS); context.systemFields = this.actor.system.schema.fields; context.systemFields.attack.fields = this.actor.system.attack.schema.fields; - // context.getEffectDetails = this.getEffectDetails.bind(this); - // context.isNPC = true; - // console.log(context); + return context; } diff --git a/templates/sheets/actors/adversary/notes.hbs b/templates/sheets/actors/adversary/notes.hbs index ad5ea3a8..effa7240 100644 --- a/templates/sheets/actors/adversary/notes.hbs +++ b/templates/sheets/actors/adversary/notes.hbs @@ -5,6 +5,6 @@ >
{{localize tabs.notes.label}} - {{formInput systemFields.notes value=document.system.notes enriched=source.document.notes localize=true toggled=true}} + {{formInput systemFields.notes value=document.system.notes enriched=document.system.notes localize=true toggled=true}}
\ No newline at end of file