This commit is contained in:
WBHarry 2025-11-23 15:20:04 +01:00 committed by GitHub
parent 81e7f24d22
commit e6a242ba43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
208 changed files with 421 additions and 206 deletions

View file

@ -57,7 +57,11 @@ export default class ActionSelectionDialog extends HandlebarsApplicationMixin(Ap
/** @inheritDoc */
async _prepareContext(options) {
const actions = this.#item.system.actionsList,
const actions = this.#item.system.actionsList.map(action => ({
...action.toObject(),
id: action.id,
img: action.baseAction ? action.parent.parent.img : action.img
})),
itemName = this.#item.name;
return {
...(await super._prepareContext(options)),