Merge pull request #3435 from overleaf/pr-compile-ui-alpha-group

Put the new compile UI out for the alpha group

GitOrigin-RevId: 82fe2006a28c791b79dceecd015f3787fe3e65c7
This commit is contained in:
Paulo Jorge Reis
2020-12-03 03:04:43 +00:00
committed by Copybot
parent e510034250
commit adc98d22ab
@@ -778,6 +778,9 @@ const ProjectController = {
const wantsOldChatUI =
req.query && req.query.new_chat_ui === 'false'
const wantsOldLogsUI =
req.query && req.query.new_logs_ui === 'false'
res.render('project/editor', {
title: project.name,
priority_title: true,
@@ -833,7 +836,7 @@ const ProjectController = {
gitBridgePublicBaseUrl: Settings.gitBridgePublicBaseUrl,
wsUrl,
showSupport: Features.hasFeature('support'),
showNewLogsUI: req.query && req.query.new_logs_ui === 'true',
showNewLogsUI: user.alphaProgram && !wantsOldLogsUI,
showNewChatUI: user.betaProgram && !wantsOldChatUI,
showReactFileTree: user.alphaProgram && !wantsOldFileTreeUI
})