فهرست منبع

Only show autocompile onboarding when first manual compile is run

Alasdair Smith 9 سال پیش
والد
کامیت
9386ddf4a9

+ 5 - 1
services/web/app/views/project/editor/editor.pug

@@ -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 - 0
services/web/public/coffee/ide.coffee

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

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

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