mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Add config to hide logo-deep-linking on deeplinking page (#7346)
This adds the ability to configure hiding the logo on the deep linking page. HIDE_DEEP_LINKING_LOGO defaults to false in the config. The implementation also defaults to showing the logo if HIDE_DEEP_LINKING_LOGO is missing from the config.
This commit is contained in:
@@ -101,6 +101,11 @@ var interfaceConfig = {
|
||||
|
||||
GENERATE_ROOMNAMES_ON_WELCOME_PAGE: true,
|
||||
|
||||
/**
|
||||
* Hide the logo on the deep linking pages.
|
||||
*/
|
||||
HIDE_DEEP_LINKING_LOGO: false,
|
||||
|
||||
/**
|
||||
* Hide the invite prompt in the header when alone in the meeting.
|
||||
*/
|
||||
|
||||
@@ -72,7 +72,7 @@ class DeepLinkingDesktopPage<P : Props> extends Component<P> {
|
||||
*/
|
||||
render() {
|
||||
const { t } = this.props;
|
||||
const { NATIVE_APP_NAME, SHOW_DEEP_LINKING_IMAGE } = interfaceConfig;
|
||||
const { HIDE_DEEP_LINKING_LOGO, NATIVE_APP_NAME, SHOW_DEEP_LINKING_IMAGE } = interfaceConfig;
|
||||
const rightColumnStyle
|
||||
= SHOW_DEEP_LINKING_IMAGE ? null : { width: '100%' };
|
||||
|
||||
@@ -82,9 +82,13 @@ class DeepLinkingDesktopPage<P : Props> extends Component<P> {
|
||||
<AtlasKitThemeProvider mode = 'light'>
|
||||
<div className = 'deep-linking-desktop'>
|
||||
<div className = 'header'>
|
||||
<img
|
||||
className = 'logo'
|
||||
src = 'images/logo-deep-linking.png' />
|
||||
{
|
||||
HIDE_DEEP_LINKING_LOGO
|
||||
? null
|
||||
: <img
|
||||
className = 'logo'
|
||||
src = 'images/logo-deep-linking.png' />
|
||||
}
|
||||
</div>
|
||||
<div className = 'content'>
|
||||
{
|
||||
|
||||
@@ -91,7 +91,7 @@ class DeepLinkingMobilePage extends Component<Props> {
|
||||
*/
|
||||
render() {
|
||||
const { _downloadUrl, _room, t } = this.props;
|
||||
const { NATIVE_APP_NAME, SHOW_DEEP_LINKING_IMAGE } = interfaceConfig;
|
||||
const { HIDE_DEEP_LINKING_LOGO, NATIVE_APP_NAME, SHOW_DEEP_LINKING_IMAGE } = interfaceConfig;
|
||||
const downloadButtonClassName
|
||||
= `${_SNS}__button ${_SNS}__button_primary`;
|
||||
|
||||
@@ -115,9 +115,13 @@ class DeepLinkingMobilePage extends Component<Props> {
|
||||
return (
|
||||
<div className = { _SNS }>
|
||||
<div className = 'header'>
|
||||
<img
|
||||
className = 'logo'
|
||||
src = 'images/logo-deep-linking.png' />
|
||||
{
|
||||
HIDE_DEEP_LINKING_LOGO
|
||||
? null
|
||||
: <img
|
||||
className = 'logo'
|
||||
src = 'images/logo-deep-linking.png' />
|
||||
}
|
||||
</div>
|
||||
<div className = { `${_SNS}__body` }>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user