mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-08 15:06:08 +02:00
remove innecessary telemetry channel information
This commit is contained in:
parent
b4ea125a63
commit
4030866a28
@ -6,7 +6,6 @@ import {FormattedMessage, useIntl} from 'react-intl'
|
|||||||
import mutator from '../../../../webapp/src/mutator'
|
import mutator from '../../../../webapp/src/mutator'
|
||||||
import {Utils} from '../../../../webapp/src/utils'
|
import {Utils} from '../../../../webapp/src/utils'
|
||||||
import {getCurrentTeam} from '../../../../webapp/src/store/teams'
|
import {getCurrentTeam} from '../../../../webapp/src/store/teams'
|
||||||
import {getCurrentChannel} from '../../../../webapp/src/store/channels'
|
|
||||||
import {createBoard, Board} from '../../../../webapp/src/blocks/board'
|
import {createBoard, Board} from '../../../../webapp/src/blocks/board'
|
||||||
import {useAppSelector} from '../../../../webapp/src/store/hooks'
|
import {useAppSelector} from '../../../../webapp/src/store/hooks'
|
||||||
import IconButton from '../../../../webapp/src/widgets/buttons/iconButton'
|
import IconButton from '../../../../webapp/src/widgets/buttons/iconButton'
|
||||||
@ -38,14 +37,9 @@ const RHSChannelBoardItem = (props: Props) => {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentChannel = useAppSelector(getCurrentChannel)
|
|
||||||
if (!currentChannel) {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
const handleBoardClicked = (boardID: string) => {
|
const handleBoardClicked = (boardID: string) => {
|
||||||
// send the telemetry information for the clicked board
|
// send the telemetry information for the clicked board
|
||||||
const extraData = {teamID: team.id, channelID: currentChannel.id, board: boardID}
|
const extraData = {teamID: team.id, board: boardID}
|
||||||
TelemetryClient.trackEvent(TelemetryCategory, TelemetryActions.ClickChannelsRHSBoard, extraData)
|
TelemetryClient.trackEvent(TelemetryCategory, TelemetryActions.ClickChannelsRHSBoard, extraData)
|
||||||
|
|
||||||
window.open(`${windowAny.frontendBaseURL}/team/${team.id}/${boardID}`, '_blank', 'noopener')
|
window.open(`${windowAny.frontendBaseURL}/team/${team.id}/${boardID}`, '_blank', 'noopener')
|
||||||
|
Loading…
Reference in New Issue
Block a user