Updated from the deprecated 'callback' to 'onClick' for ContextMenu entries

This commit is contained in:
WBHarry 2026-05-24 17:27:05 +02:00
parent f7f1bdce2b
commit 939687ef8a
3 changed files with 16 additions and 14 deletions

View file

@ -126,7 +126,7 @@ export default class DHBaseItemSheet extends DHApplicationMixin(ItemSheetV2) {
options.push({
name: 'CONTROLS.CommonDelete',
icon: '<i class="fa-solid fa-trash"></i>',
callback: async target => {
onClick: async target => {
const feature = await getDocFromElement(target);
if (!feature) return;
const confirmed = await foundry.applications.api.DialogV2.confirm({