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

use incrementalCompilesEnabled as option name

Brian Gough 9 лет назад
Родитель
Сommit
e2048e1ed5

+ 1 - 1
services/web/app/coffee/Features/Compile/ClsiManager.coffee

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

+ 2 - 2
services/web/app/coffee/Features/Compile/CompileController.coffee

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

+ 1 - 1
services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

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