8000 changed ui.notifications.info to ui.notifications.success in the two … by gludington · Pull Request #5609 · foundryvtt/dnd5e · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Open
wants to merge 3 commits into
base: 5.0.x
Choose a base branch
from

Conversation

gludington
Copy link
Contributor

changed ui.notifications.info to ui.notifications.success in the two places where it completes a process

@gludington
Copy link
Contributor Author

closes #5599

@@ -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});
Copy link
Contributor

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:

Suggested change
ui.notifications.success(game.i18n.format("MIGRATION.5eComplete", {version}), {permanent: true});
ui.notifications.success("MIGRATION.5eComplete", { format: { version }, permanent: true });

@arbron arbron added api ui User interface related features or bugs and removed api labels May 5, 2025
@@ -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 }));
Copy link
Contributor

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

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui User interface related features or bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0