From 3259b871c0063cc6c489897ad537fef4ea36c1f8 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Wed, 27 Sep 2017 17:20:06 +0100 Subject: [PATCH] Dismiss autocompile onboarding --- services/web/app/views/project/editor/editor.pug | 3 ++- .../public/coffee/ide/AutoCompileOnboardingController.coffee | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/web/app/views/project/editor/editor.pug b/services/web/app/views/project/editor/editor.pug index daac701f31..68230e018e 100644 --- a/services/web/app/views/project/editor/editor.pug +++ b/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 diff --git a/services/web/public/coffee/ide/AutoCompileOnboardingController.coffee b/services/web/public/coffee/ide/AutoCompileOnboardingController.coffee index 67110d59c9..815825e750 100644 --- a/services/web/public/coffee/ide/AutoCompileOnboardingController.coffee +++ b/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() \ No newline at end of file + $scope.dismiss = () -> + $scope.onboarding.autoCompile = 'dismissed' \ No newline at end of file