Les classifications de Pralinor #609
@ -63,7 +63,8 @@ export class DialogChronologie extends Dialog {
|
|||||||
activateListeners(html) {
|
activateListeners(html) {
|
||||||
this.html = html;
|
this.html = html;
|
||||||
super.activateListeners(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-show").click(event => this.showChronologiePreset(true));
|
||||||
this.html.find("a.chronologie-preset-hide").click(event => this.showChronologiePreset(false));
|
this.html.find("a.chronologie-preset-hide").click(event => this.showChronologiePreset(false));
|
||||||
|
Loading…
Reference in New Issue
Block a user