mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Only show autocompile onboarding when first manual compile is run
This commit is contained in:
@@ -95,7 +95,11 @@ div.full-size(
|
||||
)
|
||||
include ./pdf
|
||||
|
||||
.onboarding__autocompile.popover.right(ng-controller="AutoCompileOnboardingController")
|
||||
|
||||
.popover.right.onboarding__autocompile(
|
||||
ng-controller="AutoCompileOnboardingController"
|
||||
ng-if="onboarding.autoCompile == 'show'"
|
||||
)
|
||||
.arrow
|
||||
.popover-inner
|
||||
h3.popover-title Auto Compile
|
||||
|
||||
@@ -77,6 +77,9 @@ define [
|
||||
miniReviewPanelVisible: false,
|
||||
showAutoCompileOnboarding: window.user.betaProgram and window.showAutoCompileOnboarding
|
||||
}
|
||||
$scope.onboarding = {
|
||||
autoCompile: 'unseen'
|
||||
}
|
||||
$scope.user = window.user
|
||||
|
||||
$scope.$watch "project.features.trackChangesVisible", (visible) ->
|
||||
|
||||
@@ -412,6 +412,9 @@ define [
|
||||
$scope.recompile = (options = {}) ->
|
||||
return if $scope.pdf.compiling
|
||||
|
||||
if !options.isAutoCompile and $scope.onboarding.autoCompile == 'unseen'
|
||||
$scope.onboarding.autoCompile = 'show'
|
||||
|
||||
event_tracking.sendMBSampled "editor-recompile-sampled", options
|
||||
|
||||
$scope.pdf.compiling = true
|
||||
|
||||
Reference in New Issue
Block a user