Skip to content

Commit 51035b0

Browse files
Hide board url for cordova
1 parent e1e78b1 commit 51035b0

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

src/components/Communicator/CommunicatorDialog/CommunicatorDialogBoardItem.component.js

+19-6
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,15 @@ class CommunicatorDialogBoardItem extends React.Component {
264264
userData,
265265
communicator,
266266
activeBoardId,
267-
addOrRemoveBoard,
267+
addOrRemoveBoard
268268
} = this.props;
269269
const title = board.name || board.id;
270-
const boardUrl= window.location.origin + '/' + window.location.pathname.split('/')[1] + '/' + board.id;
270+
const boardUrl =
271+
window.location.origin +
272+
'/' +
273+
window.location.pathname.split('/')[1] +
274+
'/' +
275+
board.id;
271276
const displayActions =
272277
selectedTab === TAB_INDEXES.MY_BOARDS ||
273278
selectedTab === TAB_INDEXES.PUBLIC_BOARDS ||
@@ -566,10 +571,18 @@ class CommunicatorDialogBoardItem extends React.Component {
566571
<b>{intl.formatMessage(messages.boardInfoId)}:</b>{' '}
567572
{board.id}
568573
</Typography>
569-
<Typography variant="body1" gutterBottom>
570-
<b>{intl.formatMessage(messages.boardInfoUrl)}:</b>{' '}
571-
<a href={boardUrl} target="_blank" rel="noopener noreferrer">{boardUrl}</a>
572-
</Typography>
574+
{!isCordova() && (
575+
<Typography variant="body1" gutterBottom>
576+
<b>{intl.formatMessage(messages.boardInfoUrl)}:</b>{' '}
577+
<a
578+
href={boardUrl}
579+
target="_blank"
580+
rel="noopener noreferrer"
581+
>
582+
{boardUrl}
583+
</a>
584+
</Typography>
585+
)}
573586
</DialogContentText>
574587
</DialogContent>
575588
<DialogActions>

0 commit comments

Comments
 (0)