From 8b6abcc8bb180bb0f060460a5f61fe9ec1a41a52 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 17 Nov 2022 01:21:13 +0100 Subject: [PATCH] Suppression bouton default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour éviter qu'un dialog ouvert depuis le tchat se valide tout seul aux ouvertures suivantes --- module/dialog-chronologie.js | 3 +-- module/dialog-stress.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/module/dialog-chronologie.js b/module/dialog-chronologie.js index d7ec467e..668b4456 100644 --- a/module/dialog-chronologie.js +++ b/module/dialog-chronologie.js @@ -43,8 +43,7 @@ export class DialogChronologie extends Dialog { content: html, buttons: { ajout: { label: "Ajouter", callback: it => this.ajouter() }, - }, - default: "ajout" + } }; super(conf, options); } diff --git a/module/dialog-stress.js b/module/dialog-stress.js index 24928c01..6ec1efb5 100644 --- a/module/dialog-stress.js +++ b/module/dialog-stress.js @@ -31,8 +31,7 @@ export class DialogStress extends Dialog { content: html, buttons: { stress: { label: "Stress !", callback: it => { this.onStress(); } } - }, - default: "stress" + } }; super(conf, options); this.dialogData = dialogData;