Просмотр исходного кода

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

Put the new compile UI out for the alpha group

GitOrigin-RevId: 82fe2006a28c791b79dceecd015f3787fe3e65c7
Paulo Jorge Reis 5 лет назад
Родитель
Сommit
adc98d22ab
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      services/web/app/src/Features/Project/ProjectController.js

+ 4 - 1
services/web/app/src/Features/Project/ProjectController.js

@@ -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
             })