use notification wrapper
This commit is contained in:
parent
5d249d4c10
commit
d7fb8fd61a
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
import { DS4 } from "../config";
|
||||
import notifications from "../ui/notifications";
|
||||
import { DS4Item } from "./item";
|
||||
import { isDS4ItemDataTypePhysical } from "./item-data";
|
||||
|
||||
|
@ -82,7 +83,7 @@ export class DS4ItemSheet extends ItemSheet<ItemSheet.Data<DS4Item>> {
|
|||
event.preventDefault();
|
||||
|
||||
if (this.item.isOwned) {
|
||||
return ui.notifications?.warn(game.i18n.localize("DS4.WarningManageActiveEffectOnOwnedItem"));
|
||||
return notifications.warn(game.i18n.localize("DS4.WarningManageActiveEffectOnOwnedItem"));
|
||||
}
|
||||
const a = event.currentTarget;
|
||||
const li = $(a).parents(".effect");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue