Pārlūkot izejas kodu

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.
j8
James Carbine 5 gadus atpakaļ
vecāks
revīzija
5b10d8f5ef
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 5
- 0
interface_config.js Parādīt failu

@@ -101,6 +101,11 @@ var interfaceConfig = {
101 101
 
102 102
     GENERATE_ROOMNAMES_ON_WELCOME_PAGE: true,
103 103
 
104
+    /**
105
+     * Hide the logo on the deep linking pages.
106
+     */
107
+    HIDE_DEEP_LINKING_LOGO: false,
108
+
104 109
     /**
105 110
      * Hide the invite prompt in the header when alone in the meeting.
106 111
      */

+ 8
- 4
react/features/deep-linking/components/DeepLinkingDesktopPage.web.js Parādīt failu

@@ -72,7 +72,7 @@ class DeepLinkingDesktopPage<P : Props> extends Component<P> {
72 72
      */
73 73
     render() {
74 74
         const { t } = this.props;
75
-        const { NATIVE_APP_NAME, SHOW_DEEP_LINKING_IMAGE } = interfaceConfig;
75
+        const { HIDE_DEEP_LINKING_LOGO, NATIVE_APP_NAME, SHOW_DEEP_LINKING_IMAGE } = interfaceConfig;
76 76
         const rightColumnStyle
77 77
             = SHOW_DEEP_LINKING_IMAGE ? null : { width: '100%' };
78 78
 
@@ -82,9 +82,13 @@ class DeepLinkingDesktopPage<P : Props> extends Component<P> {
82 82
             <AtlasKitThemeProvider mode = 'light'>
83 83
                 <div className = 'deep-linking-desktop'>
84 84
                     <div className = 'header'>
85
-                        <img
86
-                            className = 'logo'
87
-                            src = 'images/logo-deep-linking.png' />
85
+                        {
86
+                            HIDE_DEEP_LINKING_LOGO
87
+                                ? null
88
+                                : <img
89
+                                    className = 'logo'
90
+                                    src = 'images/logo-deep-linking.png' />
91
+                        }
88 92
                     </div>
89 93
                     <div className = 'content'>
90 94
                         {

+ 8
- 4
react/features/deep-linking/components/DeepLinkingMobilePage.web.js Parādīt failu

@@ -91,7 +91,7 @@ class DeepLinkingMobilePage extends Component<Props> {
91 91
      */
92 92
     render() {
93 93
         const { _downloadUrl, _room, t } = this.props;
94
-        const { NATIVE_APP_NAME, SHOW_DEEP_LINKING_IMAGE } = interfaceConfig;
94
+        const { HIDE_DEEP_LINKING_LOGO, NATIVE_APP_NAME, SHOW_DEEP_LINKING_IMAGE } = interfaceConfig;
95 95
         const downloadButtonClassName
96 96
             = `${_SNS}__button ${_SNS}__button_primary`;
97 97
 
@@ -115,9 +115,13 @@ class DeepLinkingMobilePage extends Component<Props> {
115 115
         return (
116 116
             <div className = { _SNS }>
117 117
                 <div className = 'header'>
118
-                    <img
119
-                        className = 'logo'
120
-                        src = 'images/logo-deep-linking.png' />
118
+                    {
119
+                        HIDE_DEEP_LINKING_LOGO
120
+                            ? null
121
+                            : <img
122
+                                className = 'logo'
123
+                                src = 'images/logo-deep-linking.png' />
124
+                    }
121 125
                 </div>
122 126
                 <div className = { `${_SNS}__body` }>
123 127
                     {

Notiek ielāde…
Atcelt
Saglabāt