Browse Source

feat(deep-linking): hide web button on unsupported browsers

j8
Leonard Kim 5 years ago
parent
commit
d65a068fdb

+ 1
- 0
lang/main.json View File

121
     "deepLinking": {
121
     "deepLinking": {
122
         "appNotInstalled": "You need the __app__ mobile app to join this meeting on your phone.",
122
         "appNotInstalled": "You need the __app__ mobile app to join this meeting on your phone.",
123
         "description": "Nothing happened? We tried launching your meeting in the __app__ desktop app. Try again or launch it in the __app__ web app.",
123
         "description": "Nothing happened? We tried launching your meeting in the __app__ desktop app. Try again or launch it in the __app__ web app.",
124
+        "descriptionWithoutWeb": "Nothing happened? We tried launching your meeting in the __app__ desktop app.",
124
         "downloadApp": "Download the app",
125
         "downloadApp": "Download the app",
125
         "launchWebButton": "Launch in web",
126
         "launchWebButton": "Launch in web",
126
         "openApp": "Continue to the app",
127
         "openApp": "Continue to the app",

+ 13
- 5
react/features/deep-linking/components/DeepLinkingDesktopPage.web.js View File

7
 import type { Dispatch } from 'redux';
7
 import type { Dispatch } from 'redux';
8
 
8
 
9
 import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
9
 import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
10
+import { isSupportedBrowser } from '../../base/environment';
10
 import { translate } from '../../base/i18n';
11
 import { translate } from '../../base/i18n';
11
 
12
 
12
 import {
13
 import {
107
                                 </h1>
108
                                 </h1>
108
                                 <p className = 'description'>
109
                                 <p className = 'description'>
109
                                     {
110
                                     {
110
-                                        t(`${_TNS}.description`,
111
-                                            { app: NATIVE_APP_NAME })
111
+                                        t(
112
+                                            `${_TNS}.${isSupportedBrowser()
113
+                                                ? 'description'
114
+                                                : 'descriptionWithoutWeb'}`,
115
+                                            { app: NATIVE_APP_NAME }
116
+                                        )
112
                                     }
117
                                     }
113
                                 </p>
118
                                 </p>
114
                                 <div className = 'buttons'>
119
                                 <div className = 'buttons'>
118
                                             onClick = { this._onTryAgain }>
123
                                             onClick = { this._onTryAgain }>
119
                                             { t(`${_TNS}.tryAgainButton`) }
124
                                             { t(`${_TNS}.tryAgainButton`) }
120
                                         </Button>
125
                                         </Button>
121
-                                        <Button onClick = { this._onLaunchWeb }>
122
-                                            { t(`${_TNS}.launchWebButton`) }
123
-                                        </Button>
126
+                                        {
127
+                                            isSupportedBrowser()
128
+                                                && <Button onClick = { this._onLaunchWeb }>
129
+                                                    { t(`${_TNS}.launchWebButton`) }
130
+                                                </Button>
131
+                                        }
124
                                     </ButtonGroup>
132
                                     </ButtonGroup>
125
                                 </div>
133
                                 </div>
126
                             </div>
134
                             </div>

Loading…
Cancel
Save