mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 07:09:02 +02:00
use incrementalCompilesEnabled as option name
This commit is contained in:
@@ -125,7 +125,7 @@ module.exports = ClsiManager =
|
||||
if project.compiler not in ClsiManager.VALID_COMPILERS
|
||||
project.compiler = "pdflatex"
|
||||
|
||||
if options.incremental or options.syncType? # new way, either incremental or full
|
||||
if options.incrementalCompilesEnabled or options.syncType? # new way, either incremental or full
|
||||
timer = new Metrics.Timer("editor.compile-getdocs-redis")
|
||||
ClsiManager.getContentFromDocUpdaterIfMatch project_id, project, (error, projectStateHash, docUpdaterDocs) ->
|
||||
timer.done()
|
||||
|
||||
@@ -30,8 +30,8 @@ module.exports = CompileController =
|
||||
options.draft = req.body.draft
|
||||
if req.body?.check in ['validate', 'error', 'silent']
|
||||
options.check = req.body.check
|
||||
if req.body?.incremental
|
||||
options.incremental = true
|
||||
if req.body?.incrementalCompilesEnabled
|
||||
options.incrementalCompilesEnabled = true
|
||||
logger.log {options:options, project_id:project_id, user_id:user_id}, "got compile request"
|
||||
CompileManager.compile project_id, user_id, options, (error, status, outputFiles, clsiServerId, limits, validationProblems) ->
|
||||
return next(error) if error?
|
||||
|
||||
@@ -105,7 +105,7 @@ define [
|
||||
rootDoc_id: options.rootDocOverride_id or null
|
||||
draft: $scope.draft
|
||||
check: checkType
|
||||
incremental: window.user?.betaProgram
|
||||
incrementalCompilesEnabled: window.user?.betaProgram
|
||||
_csrf: window.csrfToken
|
||||
}, {params: params}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user