Les classifications de Pralinor #609

Merged
uberwald merged 11 commits from VincentVk/foundryvtt-reve-de-dragon:v10 into v10 2023-01-14 08:54:28 +01:00
Showing only changes of commit 484530d67d - Show all commits

View File

@ -63,7 +63,8 @@ export class DialogChronologie extends Dialog {
activateListeners(html) {
this.html = html;
super.activateListeners(html);
this.showChronologiePreset(!game.journal.get(this.dialogData.journalId).canUserModify(game.user))
const journalPrecedent = game.journal.get(this.dialogData.journalId);
this.showChronologiePreset(!(journalPrecedent?.canUserModify(game.user)))
this.html.find("a.chronologie-preset-show").click(event => this.showChronologiePreset(true));
this.html.find("a.chronologie-preset-hide").click(event => this.showChronologiePreset(false));