use notification wrapper

This commit is contained in:
Johannes Loher 2021-02-21 04:09:48 +01:00
parent 5d249d4c10
commit d7fb8fd61a
2 changed files with 4 additions and 2 deletions

View file

@ -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");