use incrementalCompilesEnabled as option name

This commit is contained in:
Brian Gough 2017-08-09 16:25:57 +01:00
parent 836bddd91f
commit e2048e1ed5
3 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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?

View file

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