From c19db4dc9c1c43d20b64e78cf0ba2b834b4faf1e Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 14 Dec 2021 11:59:36 +0100 Subject: [PATCH] Builtin ConverseJS mode: fix advanced controls hiding. --- CHANGELOG.md | 1 + conversejs/builtin.ts | 2 +- conversejs/index.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60473e31..496cb11f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * Spanish translations (thanks [rnek0](https://github.com/rnek0)). * Hide secret keys in diagnostic tool. +* Builtin ConverseJS mode: fix advanced controls hiding. ## v5.0.2 diff --git a/conversejs/builtin.ts b/conversejs/builtin.ts index 3a273644..ccc5ad03 100644 --- a/conversejs/builtin.ts +++ b/conversejs/builtin.ts @@ -81,7 +81,7 @@ interface InitConverseParams { boshServiceUrl: string websocketServiceUrl: string authenticationUrl: string - advancedControls: 'true' | 'false' + advancedControls: boolean theme: string } window.initConverse = async function initConverse ({ diff --git a/conversejs/index.html b/conversejs/index.html index 61720e8e..3c8c6b97 100644 --- a/conversejs/index.html +++ b/conversejs/index.html @@ -21,7 +21,7 @@ boshServiceUrl: '{{BOSH_SERVICE_URL}}', websocketServiceUrl: '{{WS_SERVICE_URL}}', authenticationUrl: '{{AUTHENTICATION_URL}}', - advancedControls: '{{ADVANCEDCONTROLS}}', + advancedControls: '{{ADVANCEDCONTROLS}}' === 'true', theme: '{{CONVERSEJS_THEME}}' })