reference Notifications from the new namespace
This commit is contained in:
parent
61bc68dd3c
commit
51235ebaf2
@ -2,6 +2,7 @@ const { TypeDataModel } = foundry.abstract;
|
|||||||
const { SchemaField, NumberField, StringField, BooleanField } = foundry.data.fields;
|
const { SchemaField, NumberField, StringField, BooleanField } = foundry.data.fields;
|
||||||
const { ActorSheetV2, ItemSheetV2 } = foundry.applications.sheets;
|
const { ActorSheetV2, ItemSheetV2 } = foundry.applications.sheets;
|
||||||
const { ApplicationV2, HandlebarsApplicationMixin } = foundry.applications.api;
|
const { ApplicationV2, HandlebarsApplicationMixin } = foundry.applications.api;
|
||||||
|
const { Notifications } = foundry.applications.ui;
|
||||||
const { OperatorTerm, NumericTerm } = foundry.dice.terms;
|
const { OperatorTerm, NumericTerm } = foundry.dice.terms;
|
||||||
|
|
||||||
Hooks.once("i18nInit", async function() {
|
Hooks.once("i18nInit", async function() {
|
||||||
@ -18,7 +19,7 @@ class DSA41_Notifications extends Notifications {
|
|||||||
notify(message, type="info", {localize=false, permanent=false, console=true}={}) {
|
notify(message, type="info", {localize=false, permanent=false, console=true}={}) {
|
||||||
if (permanent && message === "ERROR.RESOLUTION.Window")
|
if (permanent && message === "ERROR.RESOLUTION.Window")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
return super.notify(message, type, { localize, permanent, console });
|
return super.notify(message, type, { localize, permanent, console });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user