web: allow configuring buttons in toolbar and pre-join screen

This commit is contained in:
Prayag Singh
2022-01-05 18:00:25 +05:30
committed by GitHub
parent d9d12f0938
commit 0be9c8fd04
3 changed files with 18 additions and 0 deletions

View File

@@ -364,3 +364,13 @@ config.disableReactions = {{ $DISABLE_REACTIONS }};
// Polls
config.disablePolls = {{ $DISABLE_POLLS }};
// Configure toolbar buttons
{{ if .Env.TOOLBAR_BUTTONS -}}
config.toolbarButtons = [ '{{ join "','" (splitList "," .Env.TOOLBAR_BUTTONS) }}' ];
{{ end -}}
// Hides the buttons at pre-join screen
{{ if .Env.HIDE_PREMEETING_BUTTONS -}}
config.hiddenPremeetingButtons = [ '{{ join "','" (splitList "," .Env.HIDE_PREMEETING_BUTTONS) }}' ];
{{ end -}}