Localize everything that isn't already localized #27
2 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { DialogManager } from "../../utils/DialogManager.mjs";
|
import { close } from "../../utils/DialogManager.mjs";
|
||||||
import { localizer } from "../../utils/localizer.mjs";
|
import { localizer } from "../../utils/localizer.mjs";
|
||||||
|
|
||||||
export async function queryCancel(payload) {
|
export async function queryCancel(payload) {
|
||||||
|
|
@ -15,5 +15,5 @@ export async function queryCancel(payload) {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
await DialogManager.close(id);
|
close(id);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { DialogManager } from "../../utils/DialogManager.mjs";
|
import { ask } from "../../utils/DialogManager.mjs";
|
||||||
import { localizer } from "../../utils/localizer.mjs";
|
import { localizer } from "../../utils/localizer.mjs";
|
||||||
import { respondedToQueries } from "../../utils/QueryManager.mjs";
|
import { respondedToQueries } from "../../utils/QueryManager.mjs";
|
||||||
|
|
||||||
|
|
@ -36,7 +36,7 @@ export async function queryPrompt(payload) {
|
||||||
if (users != null && !users.includes(game.user.id)) { return };
|
if (users != null && !users.includes(game.user.id)) { return };
|
||||||
|
|
||||||
request.id = id;
|
request.id = id;
|
||||||
const result = await DialogManager.ask(request, config);
|
const result = await ask(request, config);
|
||||||
if (result.state === `fronted`) {
|
if (result.state === `fronted`) {
|
||||||
return;
|
return;
|
||||||
} else if (result.state === `errored`) {
|
} else if (result.state === `errored`) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue