Builtin ConverseJS mode: fix advanced controls hiding.

This commit is contained in:
John Livingston 2021-12-14 11:59:36 +01:00
parent 586df3983c
commit c19db4dc9c
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -81,7 +81,7 @@ interface InitConverseParams {
boshServiceUrl: string
websocketServiceUrl: string
authenticationUrl: string
advancedControls: 'true' | 'false'
advancedControls: boolean
theme: string
}
window.initConverse = async function initConverse ({

View File

@ -21,7 +21,7 @@
boshServiceUrl: '{{BOSH_SERVICE_URL}}',
websocketServiceUrl: '{{WS_SERVICE_URL}}',
authenticationUrl: '{{AUTHENTICATION_URL}}',
advancedControls: '{{ADVANCEDCONTROLS}}',
advancedControls: '{{ADVANCEDCONTROLS}}' === 'true',
theme: '{{CONVERSEJS_THEME}}'
})
</script>