mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 04:55:17 -05:00
rename isAutoCompile and isBackgroundAutoCompile
changed to isAutoCompileOnLoad and isAutoCompileOnChange
This commit is contained in:
parent
2723537f82
commit
15e2deed73
1 changed files with 5 additions and 5 deletions
|
@ -68,7 +68,7 @@ define [
|
|||
$scope.$on "project:joined", () ->
|
||||
return if !autoCompile
|
||||
autoCompile = false
|
||||
$scope.recompile(isAutoCompile: true)
|
||||
$scope.recompile(isAutoCompileOnLoad: true)
|
||||
$scope.hasPremiumCompile = $scope.project.features.compileGroup == "priority"
|
||||
|
||||
$scope.$on "pdf:error:display", () ->
|
||||
|
@ -86,7 +86,7 @@ define [
|
|||
|
||||
if isTimeNonMonotonic || timeSinceLastCompile >= AUTO_COMPILE_TIMEOUT
|
||||
if (!ide.$scope.hasLintingError)
|
||||
$scope.recompile(isBackgroundAutoCompile: true)
|
||||
$scope.recompile(isAutoCompileOnChange: true)
|
||||
else
|
||||
# Extend remainder of timeout
|
||||
autoCompileTimeout = setTimeout () ->
|
||||
|
@ -127,7 +127,7 @@ define [
|
|||
sendCompileRequest = (options = {}) ->
|
||||
url = "/project/#{$scope.project_id}/compile"
|
||||
params = {}
|
||||
if options.isAutoCompile or options.isBackgroundAutoCompile
|
||||
if options.isAutoCompileOnLoad or options.isAutoCompileOnChange
|
||||
params["auto_compile"]=true
|
||||
# if the previous run was a check, clear the error logs
|
||||
$scope.pdf.logEntries = [] if $scope.check
|
||||
|
@ -207,7 +207,7 @@ define [
|
|||
$scope.shouldShowLogs = true
|
||||
fetchLogs(fileByPath)
|
||||
else if response.status == "autocompile-backoff"
|
||||
if $scope.pdf.isAutoCompile # initial autocompile
|
||||
if $scope.pdf.isAutoCompileOnLoad # initial autocompile
|
||||
$scope.pdf.view = 'uncompiled'
|
||||
else # background autocompile from typing
|
||||
$scope.pdf.view = 'errors'
|
||||
|
@ -422,7 +422,7 @@ define [
|
|||
event_tracking.sendMBSampled "editor-recompile-sampled", options
|
||||
|
||||
$scope.pdf.compiling = true
|
||||
$scope.pdf.isAutoCompile = options?.isAutoCompile # initial autocompile
|
||||
$scope.pdf.isAutoCompileOnLoad = options?.isAutoCompileOnLoad # initial autocompile
|
||||
|
||||
if options?.force
|
||||
# for forced compile, turn off validation check and ignore errors
|
||||
|
|
Loading…
Reference in a new issue