Add a confirmation dialog whenever deleting an item from the sheet context menus (closes #57)
This commit is contained in:
parent
898e01f215
commit
92cb1ed7ff
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ export async function deleteItemFromElement(target) {
|
||||||
const itemId = itemEl.dataset.itemId;
|
const itemId = itemEl.dataset.itemId;
|
||||||
if (!itemId) { return };
|
if (!itemId) { return };
|
||||||
const item = await fromUuid(itemId);
|
const item = await fromUuid(itemId);
|
||||||
item.delete();
|
item.deleteDialog();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue