From 3fa5475c3bdf7d620292919bedf50b9d261d0f77 Mon Sep 17 00:00:00 2001 From: Toni Beier <rolingdx@yahoo.de> Date: Wed, 10 Mar 2021 23:55:45 +0100 Subject: [PATCH] Display language select button if room has languages --- .../ui/components/actions-bar/component.jsx | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/actions-bar/component.jsx b/bigbluebutton-html5/imports/ui/components/actions-bar/component.jsx index 849ded412f..8c8e76273b 100755 --- a/bigbluebutton-html5/imports/ui/components/actions-bar/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/actions-bar/component.jsx @@ -310,22 +310,27 @@ class ActionsBar extends PureComponent { </div> ):null } - <div id={"translationButton"}> - <Button - customIcon={ - <img - className="icon-bbb-translation" - src='/html5client/svgs/bbb_translations_icon.svg' + {hasLanguages + ? ( + <div id={"translationButton"}> + <Button + customIcon={ + <img + className="icon-bbb-translation" + src='/html5client/svgs/bbb_translations_icon.svg' + /> + } + color='primary' + label={intl.formatMessage(intlMessages.selectTranslationLabel)} + circle + hideLabel + size="lg" + onClick={this.toggleTranslationSelection.bind(this)} /> - } - color='primary' - label={intl.formatMessage(intlMessages.selectTranslationLabel)} - circle - hideLabel - size="lg" - onClick={this.toggleTranslationSelection.bind(this)} - /> - </div> + </div> + ) + : null + } { amIModerator ? ( <Button -- GitLab