Merge pull request #2766 from mattermost/gh-2709-update-link

update link for teams
This commit is contained in:
Scott Bishel 2022-04-13 08:45:15 -06:00 committed by GitHub
commit 5afa8699e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,9 +218,9 @@ export default class Plugin {
)
const goToFocalboardTemplate = () => {
const currentChannel = mmStore.getState().entities.channels.currentChannelId
TelemetryClient.trackEvent(TelemetryCategory, TelemetryActions.ClickChannelIntro, {channelID: currentChannel})
window.open(`${windowAny.frontendBaseURL}/workspace/${currentChannel}`, '_blank', 'noopener')
const currentTeam = mmStore.getState().entities.teams.currentTeamId
TelemetryClient.trackEvent(TelemetryCategory, TelemetryActions.ClickChannelIntro, {teamID: currentTeam})
window.open(`${windowAny.frontendBaseURL}/team/${currentTeam}`, '_blank', 'noopener')
}
if (registry.registerChannelIntroButtonAction) {
@ -233,13 +233,6 @@ export default class Plugin {
}
this.registry.registerPostWillRenderEmbedComponent((embed) => embed.type === 'boards', BoardsUnfurl, false)
} else {
windowAny.frontendBaseURL = subpath + '/plug/focalboard'
this.channelHeaderButtonId = registry.registerChannelHeaderButtonAction(<FocalboardIcon/>, () => {
const currentChannel = mmStore.getState().entities.channels.currentChannelId
window.open(`${window.location.origin}/plug/focalboard/workspace/${currentChannel}`)
}, 'Boards', 'Boards')
this.registry.registerCustomRoute('/', MainApp)
}
const config = await octoClient.getClientConfig()