mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 16:49:22 +00:00
use incrementalCompilesEnabled as option name
This commit is contained in:
parent
836bddd91f
commit
e2048e1ed5
3 changed files with 4 additions and 4 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue