Skip to content
Snippets Groups Projects
Commit 3fa5475c authored by Toni Beier's avatar Toni Beier
Browse files

Display language select button if room has languages

parent 8c107bcb
No related branches found
No related tags found
1 merge request!30Übersetzung-UI ist sichtbar, wenn Sprachen verfügbar sind
...@@ -310,22 +310,27 @@ class ActionsBar extends PureComponent { ...@@ -310,22 +310,27 @@ class ActionsBar extends PureComponent {
</div> </div>
):null ):null
} }
<div id={"translationButton"}> {hasLanguages
<Button ? (
customIcon={ <div id={"translationButton"}>
<img <Button
className="icon-bbb-translation" customIcon={
src='/html5client/svgs/bbb_translations_icon.svg' <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)}
/> />
} </div>
color='primary' )
label={intl.formatMessage(intlMessages.selectTranslationLabel)} : null
circle }
hideLabel
size="lg"
onClick={this.toggleTranslationSelection.bind(this)}
/>
</div>
{ amIModerator ? { amIModerator ?
( (
<Button <Button
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment