Only show autocompile onboarding when first manual compile is run

This commit is contained in:
Alasdair Smith
2017-09-28 11:13:49 +01:00
parent 316cf07225
commit 9386ddf4a9
3 changed files with 11 additions and 1 deletions
@@ -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
+3
View File
@@ -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