mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-26 18:48:15 +02:00
update link for teams
This commit is contained in:
parent
c5f8b7f142
commit
78ce579583
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user