feat(deep-linking): hide web button on unsupported browsers
This commit is contained in:
parent
cf23045f8d
commit
d65a068fdb
|
@ -121,6 +121,7 @@
|
||||||
"deepLinking": {
|
"deepLinking": {
|
||||||
"appNotInstalled": "You need the __app__ mobile app to join this meeting on your phone.",
|
"appNotInstalled": "You need the __app__ mobile app to join this meeting on your phone.",
|
||||||
"description": "Nothing happened? We tried launching your meeting in the __app__ desktop app. Try again or launch it in the __app__ web app.",
|
"description": "Nothing happened? We tried launching your meeting in the __app__ desktop app. Try again or launch it in the __app__ web app.",
|
||||||
|
"descriptionWithoutWeb": "Nothing happened? We tried launching your meeting in the __app__ desktop app.",
|
||||||
"downloadApp": "Download the app",
|
"downloadApp": "Download the app",
|
||||||
"launchWebButton": "Launch in web",
|
"launchWebButton": "Launch in web",
|
||||||
"openApp": "Continue to the app",
|
"openApp": "Continue to the app",
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { connect } from '../../base/redux';
|
||||||
import type { Dispatch } from 'redux';
|
import type { Dispatch } from 'redux';
|
||||||
|
|
||||||
import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
|
import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
|
||||||
|
import { isSupportedBrowser } from '../../base/environment';
|
||||||
import { translate } from '../../base/i18n';
|
import { translate } from '../../base/i18n';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -107,8 +108,12 @@ class DeepLinkingDesktopPage<P : Props> extends Component<P> {
|
||||||
</h1>
|
</h1>
|
||||||
<p className = 'description'>
|
<p className = 'description'>
|
||||||
{
|
{
|
||||||
t(`${_TNS}.description`,
|
t(
|
||||||
{ app: NATIVE_APP_NAME })
|
`${_TNS}.${isSupportedBrowser()
|
||||||
|
? 'description'
|
||||||
|
: 'descriptionWithoutWeb'}`,
|
||||||
|
{ app: NATIVE_APP_NAME }
|
||||||
|
)
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
<div className = 'buttons'>
|
<div className = 'buttons'>
|
||||||
|
@ -118,9 +123,12 @@ class DeepLinkingDesktopPage<P : Props> extends Component<P> {
|
||||||
onClick = { this._onTryAgain }>
|
onClick = { this._onTryAgain }>
|
||||||
{ t(`${_TNS}.tryAgainButton`) }
|
{ t(`${_TNS}.tryAgainButton`) }
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick = { this._onLaunchWeb }>
|
{
|
||||||
{ t(`${_TNS}.launchWebButton`) }
|
isSupportedBrowser()
|
||||||
</Button>
|
&& <Button onClick = { this._onLaunchWeb }>
|
||||||
|
{ t(`${_TNS}.launchWebButton`) }
|
||||||
|
</Button>
|
||||||
|
}
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue