Fix the deprecation warning in v14 & hide the context menu options in v13 correctly
This commit is contained in:
parent
b36fe27182
commit
500eabc755
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue