Просмотр исходного кода

Dismiss autocompile onboarding

Alasdair Smith 9 лет назад
Родитель
Сommit
3259b871c0

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

@@ -107,4 +107,5 @@ div.full-size(
 			p Try out the new auto compile setting!
 			img(src="/img/onboarding/autocompile/setting-dropdown.png" width="100%")
 			p When enabled, your project will be compiled after you finish your sentence.
-			button.btn.btn-default.btn-block Got it
+			button.btn.btn-default.btn-block(ng-click="dismiss()")
+				| Got it

+ 2 - 3
services/web/public/coffee/ide/AutoCompileOnboardingController.coffee

@@ -2,6 +2,5 @@ define [
 	"base"
 ], (App) ->
 	App.controller "AutoCompileOnboardingController", ($scope) ->
-		unsub = $scope.$on "pdf.recompile", () ->
-			console.log('recompiling')
-			unsub()
+		$scope.dismiss = () ->
+			$scope.onboarding.autoCompile = 'dismissed'