Openning the board in a new window from the RHS in channels (#3416)
This commit is contained in:
parent
e1f14b0a15
commit
0eb3bbc0dc
1 changed files with 4 additions and 2 deletions
|
@ -13,9 +13,12 @@ import OptionsIcon from '../../../../webapp/src/widgets/icons/options'
|
|||
import DeleteIcon from '../../../../webapp/src/widgets/icons/delete'
|
||||
import Menu from '../../../../webapp/src/widgets/menu'
|
||||
import MenuWrapper from '../../../../webapp/src/widgets/menuWrapper'
|
||||
import {SuiteWindow} from '../../../../webapp/src/types/index'
|
||||
|
||||
import './rhsChannelBoardItem.scss'
|
||||
|
||||
const windowAny = (window as SuiteWindow)
|
||||
|
||||
type Props = {
|
||||
board: Board
|
||||
}
|
||||
|
@ -30,8 +33,7 @@ const RHSChannelBoardItem = (props: Props) => {
|
|||
}
|
||||
|
||||
const handleBoardClicked = (boardID: string) => {
|
||||
const windowAny: any = window
|
||||
windowAny.WebappUtils.browserHistory.push(`/boards/team/${team.id}/${boardID}`)
|
||||
window.open(`${windowAny.frontendBaseURL}/team/${team.id}/${boardID}`, '_blank', 'noopener')
|
||||
}
|
||||
|
||||
const onUnlinkBoard = async (board: Board) => {
|
||||
|
|
Loading…
Reference in a new issue