Fixed dialog again

This commit is contained in:
WBHarry 2025-07-25 21:05:38 +02:00
parent bda67262e9
commit deaea6f271

View file

@ -170,7 +170,9 @@ export function ActionMixin(Base) {
if (!type || !game.system.api.models.actions.actionsTypes[type]) { if (!type || !game.system.api.models.actions.actionsTypes[type]) {
({ type } = ({ type } =
(await foundry.applications.api.DialogV2.input({ (await foundry.applications.api.DialogV2.input({
window: { title: 'Select Action Type' }, window: { title: game.i18n.localize('DAGGERHEART.CONFIG.SelectAction.selectType') },
position: { width: 300 },
classes: ['daggerheart', 'dh-style'],
content: await foundry.applications.handlebars.renderTemplate( content: await foundry.applications.handlebars.renderTemplate(
'systems/daggerheart/templates/actionTypes/actionType.hbs', 'systems/daggerheart/templates/actionTypes/actionType.hbs',
{ types: CONFIG.DH.ACTIONS.actionTypes } { types: CONFIG.DH.ACTIONS.actionTypes }