Affichage de dialog en 2 temps
Sinon, la touche entrée est appliqué sur une commande et ferme le dialogue
This commit is contained in:
parent
ccb6709f5b
commit
bcd25dd0ed
@ -27,7 +27,8 @@ export class DialogChronologie extends Dialog {
|
|||||||
dateReel: DialogChronologie.getCurrentDateTime()
|
dateReel: DialogChronologie.getCurrentDateTime()
|
||||||
};
|
};
|
||||||
const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/dialog-chronologie.html", dialogData);
|
const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/dialog-chronologie.html", dialogData);
|
||||||
new DialogChronologie(html).render(true);
|
const dialog = new DialogChronologie(html);
|
||||||
|
dialog.render(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(html) {
|
constructor(html) {
|
||||||
|
@ -3,9 +3,9 @@ import { Misc } from "./misc.js";
|
|||||||
export class DialogRepos extends Dialog {
|
export class DialogRepos extends Dialog {
|
||||||
|
|
||||||
static async create(actor) {
|
static async create(actor) {
|
||||||
let actorData = actor
|
const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/dialog-repos.html", actor);
|
||||||
const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/dialog-repos.html", actorData);
|
const dialog = new DialogRepos(html, actor);
|
||||||
new DialogRepos(html, actor).render(true);
|
dialog.render(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(html, actor) {
|
constructor(html, actor) {
|
||||||
|
Loading…
Reference in New Issue
Block a user