update link for teams

This commit is contained in:
Scott Bishel 2022-04-12 10:51:06 -06:00
parent c5f8b7f142
commit 78ce579583

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) {
@ -236,8 +236,8 @@ export default class Plugin {
} 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}`)
const currentTeam = mmStore.getState().entities.teams.currentTeamId
window.open(`${window.location.origin}/plug/focalboard/team/${currentTeam}`)
}, 'Boards', 'Boards')
this.registry.registerCustomRoute('/', MainApp)
}