diff --git a/apps/meteor/client/startup/routes.tsx b/apps/meteor/client/startup/routes.tsx index 3d0b6eb6f181..63e545c34439 100644 --- a/apps/meteor/client/startup/routes.tsx +++ b/apps/meteor/client/startup/routes.tsx @@ -10,7 +10,6 @@ import React, { lazy } from 'react'; import { KonchatNotification } from '../../app/ui/client'; import { APIClient } from '../../app/utils/client'; import { appLayout } from '../lib/appLayout'; -import { createTemplateForComponent } from '../lib/portals/createTemplateForComponent'; import { dispatchToastMessage } from '../lib/toast'; import { handleError } from '../lib/utils/handleError'; import BlazeTemplate from '../views/root/BlazeTemplate'; @@ -97,10 +96,6 @@ FlowRouter.route('/home', { name: 'home', action(_params, queryParams) { - const HomePage = createTemplateForComponent('HomePage', () => import('../views/home/HomePage'), { - attachment: 'at-parent', - }); - KonchatNotification.getDesktopPermission(); if (queryParams?.saml_idp_credentialToken !== undefined) { const token = queryParams.saml_idp_credentialToken; @@ -118,7 +113,7 @@ FlowRouter.route('/home', { appLayout.render( - + , ); }); @@ -128,7 +123,7 @@ FlowRouter.route('/home', { appLayout.render( - + , ); }, diff --git a/apps/meteor/client/templates.ts b/apps/meteor/client/templates.ts index 3af359e5dc59..4b95988ebbfc 100644 --- a/apps/meteor/client/templates.ts +++ b/apps/meteor/client/templates.ts @@ -2,6 +2,10 @@ import { HTML } from 'meteor/htmljs'; import { createTemplateForComponent } from './lib/portals/createTemplateForComponent'; +createTemplateForComponent('HomePage', () => import('./views/home/HomePage'), { + attachment: 'at-parent', +}); + createTemplateForComponent('MessageActions', () => import('./components/message/MessageActions')); createTemplateForComponent('reactAttachments', () => import('./components/message/Attachments'));