Fix the deprecation warning in v14 & hide the context menu options in v13 correctly

This commit is contained in:
Oliver 2026-05-10 14:56:28 -06:00
parent b36fe27182
commit 500eabc755
2 changed files with 3 additions and 3 deletions

View file

@ -228,7 +228,7 @@ export class PlayerSheet extends
[
createContextMenuOption({
label: _loc(`taf.misc.edit`),
condition: (el) => {
visible: (el) => {
const itemUuid = el.dataset.itemUuid;
const itemExists = itemUuid != null && itemUuid !== ``;
return this.isEditable && itemExists;
@ -237,7 +237,7 @@ export class PlayerSheet extends
}),
createContextMenuOption({
label: _loc(`taf.misc.delete`),
condition: (el) => {
visible: (el) => {
const itemUuid = el.dataset.itemUuid;
const itemExists = itemUuid != null && itemUuid !== ``;
return this.isEditable && itemExists;