diff --git a/webapp/src/index.tsx b/webapp/src/index.tsx index ea76da78..34fc6a3e 100644 --- a/webapp/src/index.tsx +++ b/webapp/src/index.tsx @@ -148,9 +148,9 @@ const MainApp = (props: Props) => {
- +
-
+
@@ -160,7 +160,7 @@ const MainApp = (props: Props) => { const HeaderComponent = () => { return ( - + ) } @@ -218,7 +218,7 @@ export default class Plugin { setMattermostTheme(JSON.parse(preference.value)) theme = preference.value } - if(preference.category === 'display_settings' && preference.name === 'name_format'){ + if (preference.category === 'display_settings' && preference.name === 'name_format') { UserSettings.nameFormat = preference.value } } @@ -287,20 +287,20 @@ export default class Plugin { (props: {webSocketClient: MMWebSocketClient}) => ( - + ), - + , ) this.rhsId = rhsId - this.channelHeaderButtonId = registry.registerChannelHeaderButtonAction(, () => mmStore.dispatch(toggleRHSPlugin), 'Boards', 'Boards') + this.channelHeaderButtonId = registry.registerChannelHeaderButtonAction(, () => mmStore.dispatch(toggleRHSPlugin), 'Boards', 'Boards') this.registry.registerProduct( '/boards', @@ -313,17 +313,6 @@ export default class Plugin { true, ) - const goToFocalboardTemplate = () => { - const currentTeam = mmStore.getState().entities.teams.currentTeamId - const currentChannel = mmStore.getState().entities.channels.currentChannelId - TelemetryClient.trackEvent(TelemetryCategory, TelemetryActions.ClickChannelIntro, {teamID: currentTeam}) - window.open(`${windowAny.frontendBaseURL}/team/${currentTeam}/new/${currentChannel}`, '_blank', 'noopener') - } - - if (registry.registerChannelIntroButtonAction) { - this.channelHeaderButtonId = registry.registerChannelIntroButtonAction(, goToFocalboardTemplate, intl.formatMessage({id: 'ChannelIntro.CreateBoard', defaultMessage: 'Create a board'})) - } - if (this.registry.registerAppBarComponent) { this.registry.registerAppBarComponent(Utils.buildURL(appBarIcon, true), () => mmStore.dispatch(toggleRHSPlugin), intl.formatMessage({id: 'AppBar.Tooltip', defaultMessage: 'Toggle Linked Boards'})) } @@ -361,7 +350,7 @@ export default class Plugin { if (registry.registerSiteStatisticsHandler) { registry.registerSiteStatisticsHandler(async () => { const siteStats = await octoClient.getSiteStatistics() - if(siteStats){ + if (siteStats) { return { boards_count: { name: intl.formatMessage({id: 'SiteStats.total_boards', defaultMessage: 'Total Boards'}), @@ -385,7 +374,7 @@ export default class Plugin { this.boardSelectorId = this.registry.registerRootComponent((props: {webSocketClient: MMWebSocketClient}) => ( - + )) @@ -406,7 +395,7 @@ export default class Plugin { try { rudderCfg.setCookieDomain = new URL(siteURL).hostname // eslint-disable-next-line no-empty - } catch (_) {} + } catch (_) { } } rudderAnalytics.load(rudderKey, rudderUrl, rudderCfg)