mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-26 18:48:15 +02:00
wrap registration block to catch error (#2299)
* wrap registration block to catch error * check for function existance rather than error Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
parent
46f4185d30
commit
c7492fe0f1
@ -148,7 +148,10 @@ export default class Plugin {
|
||||
UserSettings.lastViewId = null
|
||||
window.open(`${windowAny.frontendBaseURL}/workspace/${currentChannel}`, '_blank', 'noopener')
|
||||
}
|
||||
this.channelHeaderButtonId = registry.registerChannelIntroButtonAction(<FocalboardIcon/>, goToFocalboardTemplate, 'Boards')
|
||||
|
||||
if (registry.registerChannelIntroButtonAction) {
|
||||
this.channelHeaderButtonId = registry.registerChannelIntroButtonAction(<FocalboardIcon/>, goToFocalboardTemplate, 'Boards')
|
||||
}
|
||||
|
||||
this.registry.registerProduct('/boards', 'product-boards', 'Boards', '/boards/welcome', MainApp, HeaderComponent)
|
||||
this.registry.registerPostWillRenderEmbedComponent((embed) => embed.type === 'boards', BoardsUnfurl, false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user