diff --git a/twake/backend/core/src/Twake/Core/Controller/Version.php b/twake/backend/core/src/Twake/Core/Controller/Version.php index 8c2f8918cf..1d02b5fddc 100755 --- a/twake/backend/core/src/Twake/Core/Controller/Version.php +++ b/twake/backend/core/src/Twake/Core/Controller/Version.php @@ -47,6 +47,13 @@ function getVersion(Request $request) "ready" => $ready, "auth_mode" => array_keys($auth), "auth" => $auth, + "version" => [ + "current" => "2020.Q4.135", + "minimal" => [ + "web" => "2020.Q4.135", + "mobile" => "2020.Q4.135", + ] + ], "elastic_search_available" => !!$this->container->getParameter("es.host"), "help_link" => "https://go.crisp.chat/chat/embed/?website_id=9ef1628b-1730-4044-b779-72ca48893161" ); diff --git a/twake/frontend/src/app/components/NewVersion/NewVersionComponent.tsx b/twake/frontend/src/app/components/NewVersion/NewVersionComponent.tsx index ddb33caed3..4f35e8ff25 100644 --- a/twake/frontend/src/app/components/NewVersion/NewVersionComponent.tsx +++ b/twake/frontend/src/app/components/NewVersion/NewVersionComponent.tsx @@ -36,7 +36,7 @@ const NewVersionComponent: FC = ({ children }) => { lastScrape = new Date().getTime(); const config = (await Api.get('core/version')) as ConfigurationResource; - const currentVersion: string = Environment?.version_detail; + const currentVersion: string = (window as any).version_detail; const newestVersion: string = config.data.version?.current || ''; const minimalWebVersion: string = config.data.version?.minimal?.web || '';