-
Notifications
You must be signed in to change notification settings - Fork 262
changed ui.notifications.info to ui.notifications.success in the two … #5609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 5.0.x
Are you sure you want to change the base?
Conversation
…places where it completes a process
closes #5599 |
module/migration.mjs
Outdated
@@ -154,7 +154,7 @@ export async function migrateWorld({ bypassVersionCheck=false }={}) { | |||
|
|||
// Set the migration as complete | |||
game.settings.set("dnd5e", "systemMigrationVersion", game.system.version); | |||
ui.notifications.info(game.i18n.format("MIGRATION.5eComplete", {version}), {permanent: true}); | |||
ui.notifications.success(game.i18n.format("MIGRATION.5eComplete", {version}), {permanent: true}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May as well move fully to new api:
ui.notifications.success(game.i18n.format("MIGRATION.5eComplete", {version}), {permanent: true}); | |
ui.notifications.success("MIGRATION.5eComplete", { format: { version }, permanent: true }); |
module/migration.mjs
Outdated
@@ -154,7 +154,7 @@ export async function migrateWorld({ bypassVersionCheck=false }={}) { | |||
|
|||
// Set the migration as complete | |||
game.settings.set("dnd5e", "systemMigrationVersion", game.system.version); | |||
ui.notifications.info(game.i18n.format("MIGRATION.5eComplete", {version}), {permanent: true}); | |||
ui.notifications.success(game.i18n.format("MIGRATION.5eComplete", { format: { version }, permanent: true })); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you didn't remove the use of game.i18n.format here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the catch; will address after day job time is done.
changed ui.notifications.info to ui.notifications.success in the two places where it completes a process