mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-14 20:51:07 +01:00
Block dragdrop on adversaries and environments
This commit is contained in:
parent
4aca29d6c2
commit
7f9079ae87
2 changed files with 16 additions and 0 deletions
|
|
@ -163,6 +163,14 @@ export default class AdversarySheet extends DHBaseActorSheet {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_onDropItem(event, item) {
|
||||||
|
if (this.document.uuid !== item.parent?.uuid) {
|
||||||
|
return null; // block all drag drop except internal ones
|
||||||
|
}
|
||||||
|
|
||||||
|
return super._onDropItem(event, item);
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* Application Clicks Actions */
|
/* Application Clicks Actions */
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,14 @@ export default class DhpEnvironment extends DHBaseActorSheet {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_onDropItem(event, item) {
|
||||||
|
if (this.document.uuid !== item.parent?.uuid) {
|
||||||
|
return null; // block all drag drop except internal ones
|
||||||
|
}
|
||||||
|
|
||||||
|
return super._onDropItem(event, item);
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* Application Clicks Actions */
|
/* Application Clicks Actions */
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue