From 264a3d8b39f3c96bd0a9b78e87a838336389af78 Mon Sep 17 00:00:00 2001 From: Debendra Oli Date: Fri, 17 Jun 2022 15:20:45 +0545 Subject: [PATCH] web: add prejoin config options --- docker-compose.yml | 2 ++ web/rootfs/defaults/settings-config.js | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8c33d92..fa0a254 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -87,6 +87,8 @@ services: - GOOGLE_ANALYTICS_ID - GOOGLE_API_APP_CLIENT_ID - HIDE_PREMEETING_BUTTONS + - HIDE_PREJOIN_DISPLAY_NAME + - HIDE_PREJOIN_EXTRA_BUTTONS - INVITE_SERVICE_URL - JICOFO_AUTH_USER - LETSENCRYPT_DOMAIN diff --git a/web/rootfs/defaults/settings-config.js b/web/rootfs/defaults/settings-config.js index db54e26..b22de70 100644 --- a/web/rootfs/defaults/settings-config.js +++ b/web/rootfs/defaults/settings-config.js @@ -22,6 +22,7 @@ {{ $ENABLE_TCC := .Env.ENABLE_TCC | default "true" | toBool -}} {{ $ENABLE_TRANSCRIPTIONS := .Env.ENABLE_TRANSCRIPTIONS | default "false" | toBool -}} {{ $ENABLE_JAAS_COMPONENTS := .Env.ENABLE_JAAS_COMPONENTS | default "0" | toBool }} +{{ $HIDE_PREJOIN_DISPLAY_NAME := .Env.HIDE_PREJOIN_DISPLAY_NAME | default "false" | toBool -}} {{ $PUBLIC_URL := .Env.PUBLIC_URL | default "https://localhost:8443" -}} {{ $RESOLUTION := .Env.RESOLUTION | default "720" -}} {{ $RESOLUTION_MIN := .Env.RESOLUTION_MIN | default "180" -}} @@ -51,6 +52,7 @@ {{ $DISABLE_GRANT_MODERATOR := .Env.DISABLE_GRANT_MODERATOR | default "false" | toBool -}} {{ $ENABLE_E2EPING := .Env.ENABLE_E2EPING | default "false" | toBool -}} + // Video configuration. // @@ -268,8 +270,17 @@ config.peopleSearchQueryTypes = ['user','conferenceRooms']; // // Prejoin page. -config.prejoinPageEnabled = {{ $ENABLE_PREJOIN_PAGE }}; +if (!config.hasOwnProperty('prejoinConfig')) config.prejoinConfig = {}; +config.prejoinConfig.enabled = {{ $ENABLE_PREJOIN_PAGE }}; +// Hides the participant name editing field in the prejoin screen. +config.prejoinConfig.hideDisplayName = {{ $HIDE_PREJOIN_DISPLAY_NAME }}; + +// List of buttons to hide from the extra join options dropdown on prejoin screen. +{{ if .Env.HIDE_PREJOIN_EXTRA_BUTTONS -}} +config.prejoinConfig.hideExtraJoinButtons = [ '{{ join "','" (splitList "," .Env.HIDE_PREJOIN_EXTRA_BUTTONS) }}' ]; +{{ end -}} + // Welcome page. config.enableWelcomePage = {{ $ENABLE_WELCOME_PAGE }}; @@ -284,6 +295,7 @@ config.defaultLanguage = '{{ .Env.DEFAULT_LANGUAGE }}'; // Require users to always specify a display name. config.requireDisplayName = {{ $ENABLE_REQUIRE_DISPLAY_NAME }}; + // Chrome extension banner. {{ if .Env.CHROME_EXTENSION_BANNER_JSON -}} config.chromeExtensionBanner = {{ .Env.CHROME_EXTENSION_BANNER_JSON }};