mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
Only show autocompile onboarding when first manual compile is run
This commit is contained in:
parent
316cf07225
commit
9386ddf4a9
3 changed files with 11 additions and 1 deletions
|
@ -95,7 +95,11 @@ div.full-size(
|
||||||
)
|
)
|
||||||
include ./pdf
|
include ./pdf
|
||||||
|
|
||||||
.onboarding__autocompile.popover.right(ng-controller="AutoCompileOnboardingController")
|
|
||||||
|
.popover.right.onboarding__autocompile(
|
||||||
|
ng-controller="AutoCompileOnboardingController"
|
||||||
|
ng-if="onboarding.autoCompile == 'show'"
|
||||||
|
)
|
||||||
.arrow
|
.arrow
|
||||||
.popover-inner
|
.popover-inner
|
||||||
h3.popover-title Auto Compile
|
h3.popover-title Auto Compile
|
||||||
|
|
|
@ -77,6 +77,9 @@ define [
|
||||||
miniReviewPanelVisible: false,
|
miniReviewPanelVisible: false,
|
||||||
showAutoCompileOnboarding: window.user.betaProgram and window.showAutoCompileOnboarding
|
showAutoCompileOnboarding: window.user.betaProgram and window.showAutoCompileOnboarding
|
||||||
}
|
}
|
||||||
|
$scope.onboarding = {
|
||||||
|
autoCompile: 'unseen'
|
||||||
|
}
|
||||||
$scope.user = window.user
|
$scope.user = window.user
|
||||||
|
|
||||||
$scope.$watch "project.features.trackChangesVisible", (visible) ->
|
$scope.$watch "project.features.trackChangesVisible", (visible) ->
|
||||||
|
|
|
@ -412,6 +412,9 @@ define [
|
||||||
$scope.recompile = (options = {}) ->
|
$scope.recompile = (options = {}) ->
|
||||||
return if $scope.pdf.compiling
|
return if $scope.pdf.compiling
|
||||||
|
|
||||||
|
if !options.isAutoCompile and $scope.onboarding.autoCompile == 'unseen'
|
||||||
|
$scope.onboarding.autoCompile = 'show'
|
||||||
|
|
||||||
event_tracking.sendMBSampled "editor-recompile-sampled", options
|
event_tracking.sendMBSampled "editor-recompile-sampled", options
|
||||||
|
|
||||||
$scope.pdf.compiling = true
|
$scope.pdf.compiling = true
|
||||||
|
|
Loading…
Reference in a new issue